DeploymentInfo builder = new DeploymentInfo()
.setClassLoader(SimpleServletTestCase.class.getClassLoader())
.setContextPath("/listener")
.setClassIntrospecter(TestClassIntrospector.INSTANCE)
.setDeploymentName("listener.war")
.addListener(new ListenerInfo(FirstListener.class))
.addListener(new ListenerInfo(SecondListener.class))
.addServlet(new ServletInfo("message", EmptyServlet.class)
.addMapping("/*"));
DeploymentManager manager = container.addDeployment(builder);
manager.deploy();