private static String MOD_B_SHARED = "jar-b-shared";
private static String MOD_B = "jar-b";
@Deployment(name="a", testable = false, managed = true)
public static Archive<?> deployA() {
EnterpriseArchive ear = ShrinkWrap.create(EnterpriseArchive.class, APP_A + ".ear");
JavaArchive jarA = ShrinkWrap.create(JavaArchive.class, MOD_A + ".jar");
jarA.addClasses(AEJB.class, AEJBBean.class);
JavaArchive jarAshared = ShrinkWrap.create(JavaArchive.class, MOD_A_SHARED + ".jar");
jarAshared.addClasses(Shared.class, SharedBean.class);
jarAshared.addAsManifestResource(SharedBeanInEarsUnitTestCase.class.getPackage(), "ejb-jar-a.xml", "ejb-jar.xml");
ear.addAsModule(jarA);
ear.addAsModule(jarAshared);
ear.addAsManifestResource(SharedBeanInEarsUnitTestCase.class.getPackage(), "application-a.xml", "application.xml");
log.info(ear.toString(true));
return ear;
}