+ " <servlet-name>s3</servlet-name>"
+ " <servlet-class>sclass3</servlet-class>"
+ " </servlet>"
+ "</web-app>";
Document doc = builder.parse(new ByteArrayInputStream(xml.getBytes()));
WebXml webXml = new WebXml(doc);
Iterator servletNames = webXml.getServletNames();
assertEquals("s1", servletNames.next());
assertEquals("s2", servletNames.next());
assertEquals("s3", servletNames.next());
assertTrue(!servletNames.hasNext());
}