assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(0, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
ServiceControllerMBean controller = getController();
controller.stop(NAME_ONE);
assertServiceStopped(NAME_ONE);
assertServiceRunning(NAME_TWO);
assertEquals(2, test1.createOrder);
assertEquals(4, test1.startOrder);
assertEquals(5, test1.stopOrder);
assertEquals(0, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(0, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
controller.destroy(NAME_ONE);
assertServiceDestroyed(NAME_ONE);
assertServiceRunning(NAME_TWO);
assertEquals(2, test1.createOrder);
assertEquals(4, test1.startOrder);
assertEquals(5, test1.stopOrder);
assertEquals(6, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(0, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
controller.create(NAME_ONE);
assertServiceCreated(NAME_ONE);
assertServiceRunning(NAME_TWO);
assertEquals(7, test1.createOrder);
assertEquals(4, test1.startOrder);
assertEquals(5, test1.stopOrder);
assertEquals(6, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(0, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
controller.start(NAME_ONE);
assertServiceRunning(NAME_ONE);
assertServiceRunning(NAME_TWO);
assertEquals(7, test1.createOrder);
assertEquals(8, test1.startOrder);
assertEquals(5, test1.stopOrder);
assertEquals(6, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(0, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
controller.stop(NAME_TWO);
assertServiceStopped(NAME_ONE);
assertServiceStopped(NAME_TWO);
assertEquals(7, test1.createOrder);
assertEquals(8, test1.startOrder);
assertEquals(9, test1.stopOrder);
assertEquals(6, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(10, test2.stopOrder);
assertEquals(0, test2.destroyOrder);
controller.destroy(NAME_TWO);
assertServiceDestroyed(NAME_ONE);
assertServiceDestroyed(NAME_TWO);
assertEquals(7, test1.createOrder);
assertEquals(8, test1.startOrder);
assertEquals(9, test1.stopOrder);
assertEquals(11, test1.destroyOrder);
assertEquals(1, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(10, test2.stopOrder);
assertEquals(12, test2.destroyOrder);
controller.create(NAME_TWO);
assertServiceCreated(NAME_ONE);
assertServiceCreated(NAME_TWO);
assertEquals(14, test1.createOrder);
assertEquals(8, test1.startOrder);
assertEquals(9, test1.stopOrder);
assertEquals(11, test1.destroyOrder);
assertEquals(13, test2.createOrder);
assertEquals(3, test2.startOrder);
assertEquals(10, test2.stopOrder);
assertEquals(12, test2.destroyOrder);
controller.start(NAME_TWO);
assertServiceRunning(NAME_ONE);
assertServiceRunning(NAME_TWO);
assertEquals(14, test1.createOrder);
assertEquals(16, test1.startOrder);
assertEquals(9, test1.stopOrder);