Testing of spacecraft attitude and orbit control systems