@Deployment(testable = false)
public static WebArchive getDeployment()
{
return ShrinkWrap
.create(WebArchive.class, "rewrite-test.war")
.addAsResource(new File("../api/target/classes/com"))
.addAsResource(new File("../api/target/classes/META-INF"))
.addAsResource(new File("../impl-servlet/target/classes/com"))
.addAsResource(new File("../impl-servlet/target/classes/META-INF"))
.addAsLibraries(DependencyResolvers.use(MavenDependencyResolver.class)
.artifacts("org.jboss.weld.servlet:weld-servlet:1.1.1.Final")
.resolveAs(GenericArchive.class))
.setWebXML("jetty-web.xml")
.addAsWebResource(
new StringAsset("<beans/>"),
ArchivePaths.create("WEB-INF/beans.xml"))
.addAsWebResource("jetty-env.xml",
ArchivePaths.create("WEB-INF/jetty-env.xml"));
}