assertNotNull(deployment);
List<BeanMetaData> beans = deployment.getBeans();
assertNotNull(beans);
assertFalse(beans.isEmpty());
BeanMetaData bean1 = beans.get(0);
assertInstanceOf(bean1, AbstractBeanMetaData.class);
AbstractBeanMetaData abmd1 = (AbstractBeanMetaData)bean1;
assertNotNull(bean1);
assertEquals("mybean", bean1.getName());
assertEquals("org.jboss.acme.MyBean", bean1.getBean());
Set<PropertyMetaData> propertys = bean1.getProperties();
assertNotNull(propertys);
assertFalse(propertys.isEmpty());
assertEquals(2, propertys.size());
PropertyMetaData pmd1 = abmd1.getProperty("somenumber");
assertNotNull(pmd1);
ValueMetaData vmd1 = pmd1.getValue();
assertNotNull(vmd1);
assertInstanceOf(vmd1, StringValueMetaData.class);
assertEquals("123L", vmd1.getUnderlyingValue());
assertEquals("java.lang.Long", ((StringValueMetaData)vmd1).getType());
PropertyMetaData pmd2 = abmd1.getProperty("injectee");
assertNotNull(pmd2);
ValueMetaData vmd2 = pmd2.getValue();
assertNotNull(vmd2);
assertInstanceOf(vmd2, AbstractDependencyValueMetaData.class);
BeanMetaData bean2 = beans.get(1);
assertNotNull(bean2);
assertEquals("injectee", bean2.getName());
assertEquals("org.jboss.acme.MyBean2", bean2.getBean());
}