return ShrinkWrap.create(WebArchive.class, SessionEventsTest.class.getSimpleName() + ".war")
.addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndServletModuleArchive())
.addClass(SessionEventsObserver.class)
.addClass(CreateSessionServlet.class)
.addClass(DestroySessionServlet.class)
.addAsWebInfResource(new StringAsset("<beans/>"), "beans.xml")
.addAsWebResource(new StringAsset("foobar"), "foobar.txt")
.setWebXML(new StringAsset(
Descriptors.create(WebAppDescriptor.class)
.servlet(CreateSessionServlet.class, "/create-session")
.servlet(DestroySessionServlet.class, "/destroy-session")
.exportAsString()));