.setClassLoader(SimpleServletTestCase.class.getClassLoader())
.setContextPath("/servletContext")
.setClassIntrospecter(TestClassIntrospector.INSTANCE)
.setDeploymentName("servletContext.war")
.addServlets(
new ServletInfo("request", RequestPathServlet.class)
.addMapping("/req/*"),
new ServletInfo("DefaultServlet", RequestPathServlet.class)
.addMapping("/"),
new ServletInfo("ExactServlet", RequestPathServlet.class)
.addMapping("/exact"),
new ServletInfo("ExactTxtServlet", RequestPathServlet.class)
.addMapping("/exact.txt"),
new ServletInfo("HtmlServlet", RequestPathServlet.class)
.addMapping("*.html")
)
.addFilters(
new FilterInfo("header", SetHeaderFilter.class)
.addInitParam("header", "Filter").addInitParam("value", "true"),