{
String xml = "<web-app>"
+ "</web-app>";
Document doc = builder.parse(new ByteArrayInputStream(xml.getBytes()));
WebXml webXml = new WebXml(doc);
webXml.addJspFile("s1", "s1.jsp");
assertTrue(webXml.hasServlet("s1"));
}
/**
* Tests whether a security-constraint with no roles is successfully added