return unmarshal(EjbJar1xMetaData.class);
}
public void testEntity() throws Exception
{
EjbJar1xMetaData specMetaData = unmarshal();
assertEquals("1.1", specMetaData.getVersion());
assertTrue(specMetaData.isEJB1x());
assertFalse(specMetaData.isEJB2x());
assertFalse(specMetaData.isEJB21());
assertFalse(specMetaData.isEJB3x());
ApplicationMetaData old = new ApplicationMetaData(specMetaData);
assertTrue(old.isEJB1x());
assertFalse(old.isEJB2x());
assertFalse(old.isEJB21());
assertFalse(old.isEJB3x());
EntityBeanMetaData entity = (EntityBeanMetaData) specMetaData.getEnterpriseBean("EjbName");
assertNotNull(entity);
assertTrue(entity.isCMP1x());
EntityMetaData emd = (EntityMetaData) old.getBeanByEjbName("EjbName");
assertNotNull(emd);