EnterpriseArchive enterpriseArchive = new EnterpriseArchiveBuilder().noDefaultWebModule()
.withTestClassDefinition(SpecializedProducerMethodInjectionNotAvailableTest.class)
.withClasses(SpecializedFooMethodProducer.class, FooMethodProducer.class, ProducedFoo.class)
.withBeanLibrary(Foo.class, Bar.class, Enterprise.class, Standard.class).build();
enterpriseArchive.addAsModule(new WebArchiveBuilder().notTestArchive().withDefaultEjbModuleDependency()
.withClasses(SpecializedProducerMethodInjectionNotAvailableTest.class, WebBar.class).build());
return enterpriseArchive;
}