return ejb;
}
private void assertFullMessageDrivenBean(String prefix, JBossMetaData jbossMetaData, boolean first, Mode mode)
{
JBossMessageDrivenBeanMetaData mdb = assertJBossMessageDrivenBean(prefix, jbossMetaData);
assertId(prefix, mdb);
assertDescriptionGroup(prefix, mdb.getDescriptionGroup());
assertAnnotations(prefix, 2, mdb.getAnnotations());
assertIgnoreDependency(prefix, mdb.getIgnoreDependency());
assertEquals(prefix + "AOPDomain", mdb.getAopDomainName());
assertJndiRefs(prefix, 2, mdb.getJndiRefs(), mode);
assertMethodAttributes(prefix, mdb.getMethodAttributes(), mode);
assertEquals(prefix + "DestinationJndiName", mdb.getDestinationJndiName());
assertEquals(prefix + "User", mdb.getMdbUser());
assertEquals(prefix + "Password", mdb.getMdbPassword());
assertEquals(prefix + "ClientId", mdb.getMdbClientId());
assertEquals(prefix + "SubscriptionId", mdb.getMdbSubscriptionId());
assertEquals(prefix + "RAR", mdb.getResourceAdapterName());
assertNull(mdb.getInvokerBindings());
assertEnvironment(prefix, mdb.getJndiEnvironmentRefsGroup(), false, mode);
assertSecurityIdentity(prefix, "SecurityIdentity", mdb.getSecurityIdentity(), false, mode);
assertDepends(prefix, 2, mdb.getDepends());
assertSecurityIdentity(prefix, "EjbTimeoutIdentity", mdb.getEjbTimeoutIdentity(), false, mode);
// TODO DOM pool-config
assertActivationConfig(prefix, mdb.getActivationConfig(), mode);
}