@Deployment
public static Archive<?> deploy() {
return ShrinkWrap.create(WebArchive.class)
.addPackages(true, DataSourceDefinitionWebxmlPuTest.class.getPackage())
.addAsResource("META-INF/persistence.xml")
.addAsWebInfResource(resource("web.xml"))
.addAsLibraries(Maven.resolver()
.loadPomFromFile("pom.xml")
.resolve("com.h2database:h2")
.withoutTransitivity()
.asSingleFile())
;
}