checkLifecycleBean("LifecycleBean4", true, true);
}
protected void checkLifecycleBean(String name, boolean create, boolean start) throws Throwable
{
BeanFactory factory = (BeanFactory)getBean(name);
assertNotNull(factory);
SimpleLifecycleBean lifecycle = (SimpleLifecycleBean)factory.createBean();
assertNotNull(lifecycle);
assertEquals(create, lifecycle.isCreate());
assertEquals(start, lifecycle.isStart());
}