DeploymentInfo builder = new DeploymentInfo()
.setClassLoader(SimpleServletTestCase.class.getClassLoader())
.setContextPath("/servletContext")
.setClassIntrospecter(TestClassIntrospector.INSTANCE)
.setDeploymentName("servletContext.war")
.setSessionPersistenceManager(new InMemorySessionPersistence())
.setServletSessionConfig(new ServletSessionConfig().setPath("/servletContext/aa"))
.addServlets(new ServletInfo("servlet", SessionServlet.class)
.addMapping("/aa/b"));
DeploymentManager manager = container.addDeployment(builder);
manager.deploy();