public void testWebAppModule() {
String webxml = "<web-app><servlet-mapping><servlet-name>a</servlet-name><url-pattern>/a.jsp</url-pattern></servlet-mapping>";
webxml += "<servlet-mapping><servlet-name>b</servlet-name><url-pattern>/b.jsp</url-pattern></servlet-mapping>";
webxml += "<servlet-mapping><servlet-name>c</servlet-name><url-pattern>/c.jsp</url-pattern></servlet-mapping></web-app>";
WebAppModule module;
module = new WebAppModule(new ByteArrayInputStream(webxml.getBytes()));
assertEquals(3, module.getPaths().size());
assertEquals("/a.jsp", module.getPaths().get(0));
assertEquals("/b.jsp", module.getPaths().get(1));
assertEquals("/c.jsp", module.getPaths().get(2));
assertEquals("a", module.getServletName("/a.jsp"));
assertEquals("b", module.getServletName("/b.jsp"));
assertEquals("c", module.getServletName("/c.jsp"));
}