{
EjbJar2xMetaData result = unmarshal();
assertEquals("2.0", result.getVersion());
IEnterpriseBeansMetaData beans = result.getEnterpriseBeans();
IEnterpriseBeanMetaData strictlyPooledMDB = beans.get("StrictlyPooledMDB");
assertNotNull("strictlyPooledMDB", strictlyPooledMDB);
assertEquals("strictlyPooledMDB-id", strictlyPooledMDB.getId());
assertEquals("Message driven pooling test", strictlyPooledMDB.getDescriptionGroup().getDescription());
assertEquals("org.jboss.test.cts.ejb.StrictlyPooledMDB", strictlyPooledMDB.getEjbClass());
assertTrue(strictlyPooledMDB.isMessageDriven());
assertTrue(strictlyPooledMDB instanceof MessageDrivenBeanMetaData);
MessageDrivenBeanMetaData strictlyPooledMDBMD = (MessageDrivenBeanMetaData) strictlyPooledMDB;
assertEquals("AUTO_ACKNOWLEDGE", strictlyPooledMDBMD.getAcknowledgeMode());
assertEquals("javax.jms.Queue", strictlyPooledMDBMD.getMessageDestinationType());
assertEquals(SubscriptionDurability.NonDurable, strictlyPooledMDBMD.getSubscriptionDurability());
EnvironmentEntryMetaData maxActiveCount = strictlyPooledMDBMD.getEnvironmentEntryByName("maxActiveCount");
assertEquals("maxActiveCountID", maxActiveCount.getId());
assertEquals("java.lang.Integer", maxActiveCount.getType());
assertEquals("5", maxActiveCount.getValue());
IEnterpriseBeanMetaData subclassMDB = beans.get("SubclassMDB");
assertNotNull("strictlyPooledMDB", subclassMDB);
assertEquals("SubclassMDB-id", subclassMDB.getId());
assertEquals("Message driven pooling test", subclassMDB.getDescriptionGroup().getDescription());
assertEquals("org.jboss.test.cts.ejb.ConcreteMDB", subclassMDB.getEjbClass());
assertTrue(subclassMDB.isMessageDriven());
MessageDrivenBeanMetaData mdbMD2 = (MessageDrivenBeanMetaData) subclassMDB;
assertEquals("AUTO_ACKNOWLEDGE", mdbMD2.getAcknowledgeMode());
assertEquals("javax.jms.Topic", mdbMD2.getMessageDestinationType());
assertEquals(SubscriptionDurability.Durable, mdbMD2.getSubscriptionDurability());