ConfigItemMapNamed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry put(final ConfigItemMapEntry value) { return this.map.put(value.getName(), value); } ConfigItemMapNamed(final String name); @Override String getName(); @Override int size(); @Override boolean isEmpty(); boolean contains(final String name); ConfigItemMapEntry getByName(final String name); ConfigItemMapEntry put(final ConfigItemMapEntry value); ConfigItemMapEntry removeByName(final String name); @Override Iterator<ConfigItemMapEntry> iterator(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); void clear();  }
@Test public void testAppendXML() throws Exception { final ConfigItemMapNamed m = new ConfigItemMapNamed("mapnamed"); m.put(this.set); TestHelper.assertXMLEquals( "<config:config-item-map-named config:name=\"mapnamed\">" + this.setXML + "</config:config-item-map-named>", m); }