ControllerContext context2 = assertInstall(1, "Name2", ControllerState.CONFIGURED);
ControllerContext context1 = assertInstall(0, "Name1");
assertEquals(ControllerState.INSTALLED, context2.getState());
SimpleBeanWithLifecycle bean1 = (SimpleBeanWithLifecycle) context1.getTarget();
assertNotNull(bean1);
GenericBeanFactory factory = (GenericBeanFactory) context2.getTarget();
SimpleBeanWithLifecycle bean2 = (SimpleBeanWithLifecycle) factory.createBean();
assertNotNull(bean2);
assertEquals(1, bean1.createOrder);
assertEquals(2, bean1.startOrder);
assertEquals(3, bean2.createOrder);