@Test
void testParseWebXml4() throws Exception {

    DefaultWebApplication webApplication = new DefaultWebApplication();
    webApplication.addResource(new DirectoryResource(new File("src/test/webxml/parse4")));
    InputStream inputStream = webApplication.getResourceAsStream("WEB-INF/web.xml");
    WebXmlParser parser = new WebXmlParser();
    WebXml webXml = parser.parse(inputStream);
    assertEquals(1, webXml.getServlets().size());
    String servletName = webXml.getServlets().get(0).getServletName();
    assertEquals("Test Servlet", servletName);
    List<WebXmlServletMapping> servletMappings = webXml.getServletMappings();
    assertEquals(2, servletMappings.size());
    assertEquals(servletName, servletMappings.get(0).getServletName());
    assertEquals("/foo", servletMappings.get(0).getUrlPattern());
    assertEquals(servletName, servletMappings.get(1).getServletName());
    assertEquals("/bar", servletMappings.get(1).getUrlPattern());
}