+ " <filter-name>f1</filter-name>"
+ " <filter-class>fclass1</filter-class>"
+ " </filter>"
+ "</web-app>";
Document doc = builder.parse(new ByteArrayInputStream(xml.getBytes()));
WebXml webXml = new WebXml(doc);
webXml.addFilterInitParam("f1", "f1param1", "f1param1value");
webXml.addFilterInitParam("f1", "f1param2", "f1param2value");
webXml.addFilterInitParam("f1", "f1param3", "f1param3value");
Iterator initParams = webXml.getFilterInitParamNames("f1");
assertEquals("f1param1", initParams.next());
assertEquals("f1param2", initParams.next());
assertEquals("f1param3", initParams.next());
assertTrue(!initParams.hasNext());
}