public class IncontainerTest {
@Deployment
public static WebArchive getDeployment() {
WebArchive war = ShrinkWrap.create(WebArchive.class).addClasses(Alpha.class, MarkerObtainer1.class, Foo.class, Marker.class)
.addAsWebInfResource(new BeansXml().alternatives(Alpha.class), "beans.xml");
JavaArchive bda1 = ShrinkWrap.create(JavaArchive.class).addClasses(Bravo.class, MarkerObtainer2.class, Bar.class)
.addAsManifestResource(new BeansXml().alternatives(Bravo.class), "beans.xml");
JavaArchive bda2 = ShrinkWrap.create(JavaArchive.class).addClasses(Charlie.class, MarkerObtainer3.class, Baz.class)
.addAsManifestResource(new BeansXml().alternatives(Charlie.class), "beans.xml");
JavaArchive nonBda = ShrinkWrap.create(JavaArchive.class).addClasses(MarkerObtainer4.class);
return war.addAsLibraries(bda1, bda2, nonBda);
}