//System.out.println("Processing classes: " + classes);
//enableTrace("org.jboss.metadata.annotation.creator");
EjbJar30Creator creator = new EjbJar30Creator(finder);
EjbJar30MetaData metaData = creator.create(classes);
assertTrue(metaData.isEJB3x());
assertEquals("3.0", metaData.getVersion());
assertNotNull("no beans defined", metaData.getEnterpriseBeans());
assertNotNull("no assembly descriptor defined", metaData.getAssemblyDescriptor());
// There is a bug in IdMetaDataImpl.hashCode which isn't unique when id is not set.
//for (ContainerTransactionMetaData transaction : metaData.getAssemblyDescriptor().getContainerTransactions())
//{
// System.out.println(transaction);
//}
assertEquals(6, metaData.getEnterpriseBeans().size());
assertMyStatefulBean(metaData.getEnterpriseBean("AnotherName")); // MyStatefulBean
assertMyStateless21Bean(metaData.getEnterpriseBean("MyStateless21Bean"));
assertMyStatelessBean(metaData.getEnterpriseBean("MyStatelessBean"));
assertMyMDB(metaData.getEnterpriseBean("MailMDB"));
AssemblyDescriptorMetaData assembly = metaData.getAssemblyDescriptor();
assertNotNull("no application exceptions defined", assembly.getApplicationExceptions());
assertEquals(1, assembly.getApplicationExceptions().size());
//System.out.println(assembly.getContainerTransactionsByEjbName("MyStatelessBean"));
// @DeclareRoles