// Archive which contains an extension and no beans.xml file
JavaArchive legacy = ShrinkWrap.create(JavaArchive.class).addClasses(LegacyExtension.class, LegacyAlpha.class,
LegacyBravo.class).addAsServiceProvider(Extension.class, LegacyExtension.class);
return new WebArchiveBuilder().withTestClass(BeanDiscoveryTest.class).withClasses(VerifyingExtension.class)
.withExtension(VerifyingExtension.class).withLibrary(Ping.class)
.withLibraries(alpha, bravo, charlie, delta, echo, foxtrot, legacy).build();
}