ConfigItemSet implements ConfigItemCollection<ConfigBlock> { public void add(final ConfigBlock configBlock) { this.blockByName.put(configBlock.getName(), configBlock); } ConfigItemSet(final String name); @Override String getName(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override int size(); @Override boolean isEmpty(); @Override Iterator<ConfigBlock> iterator(); void add(final ConfigBlock configBlock); boolean contains(final String name); void removeByName(final String name); ConfigBlock getByName(final String name);  }
@Test public void testAppendXML() throws Exception { final ConfigItemSet m = new ConfigItemSet("set"); m.add(this.item); TestHelper.assertXMLEquals("<config:config-item-set config:name=\"set\">" + this.itemXML + "</config:config-item-set>", m); }