assertEquals("Bean4", bean.getBean());
}
public void testDeploymentWithLifecycle() throws Exception
{
AbstractKernelDeployment deployment = unmarshalDeployment("DeploymentWithLifecycle.xml");
LifecycleMetaData create = deployment.getCreate();
assertNotNull(create);
LifecycleMetaData start = deployment.getStart();
assertNotNull(start);
LifecycleMetaData stop = deployment.getStop();
assertNotNull(stop);
LifecycleMetaData destroy = deployment.getDestroy();
assertNotNull(destroy);
List<BeanMetaData> beans = deployment.getBeans();
assertNotNull(beans);
assertEquals(1, beans.size());
BeanMetaData bean = beans.iterator().next();
assertEquals(create, bean.getCreate());