return entity;
}
private EntityMetaData assertFullEntity(String ejbName, ApplicationMetaData applicationMetaData, Mode mode)
{
EntityMetaData entity = assertEntity(ejbName + "EjbName", applicationMetaData);
assertEquals(ejbName + "Home", entity.getHome());
assertEquals(ejbName + "Remote", entity.getRemote());
assertEquals(ejbName + "LocalHome", entity.getLocalHome());
assertEquals(ejbName + "Local",entity.getLocal());
assertEquals(ejbName + "EjbClass", entity.getEjbClass());
assertTrue(entity.isCMP());
assertEquals(ejbName + "PrimKeyClass", entity.getPrimaryKeyClass());
assertTrue(entity.isReentrant());
assertTrue(entity.isCMP2x());
assertFalse(entity.isCMP1x());
assertEquals(ejbName + "AbstractSchemaName", entity.getAbstractSchemaName());
assertCmpFields(ejbName, 2, entity.getCMPFields());
assertEquals(ejbName + "PrimKeyField",entity.getPrimKeyField());
assertEnvironment(ejbName, entity, true, mode);
assertMethodAttributes(ejbName, entity);
assertMethodPermissions(ejbName, 7, entity);
assertExcludedMethods(ejbName, entity.getExcludedMethods());
assertSecurityRoleRefs(ejbName, 2, entity.getSecurityRoleReferences());
assertSecurityIdentity(ejbName, "SecurityIdentity", entity.getSecurityIdentityMetaData(), true);
assertQueries(ejbName, 3, entity.getQueries());
return entity;
}