+ " <filter-name>f1</filter-name>"
+ " <url-pattern>/f1mapping3</url-pattern>"
+ " </filter-mapping>"
+ "</web-app>";
Document doc = builder.parse(new ByteArrayInputStream(xml.getBytes()));
WebXml webXml = new WebXml(doc);
Iterator filterMappings = webXml.getFilterMappings("f1");
assertEquals("/f1mapping1", filterMappings.next());
assertEquals("/f1mapping2", filterMappings.next());
assertEquals("/f1mapping3", filterMappings.next());
assertTrue(!filterMappings.hasNext());
}