ConfigItemMapIndexed implements ConfigItemCollection<ConfigItemMapEntry> { public boolean add(final ConfigItemMapEntry configItemMapEntry) { return this.list.add(configItemMapEntry); } ConfigItemMapIndexed(final String name); @Override int size(); @Override boolean isEmpty(); boolean contains(final Object o); @Override Iterator<ConfigItemMapEntry> iterator(); boolean add(final ConfigItemMapEntry configItemMapEntry); void remove(final int index); ConfigItemMapEntry get(final int index); ConfigItemMapEntry set(final int index, final ConfigItemMapEntry element); void add(final int index, final ConfigItemMapEntry element); @Override String getName(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable);  }
@Test public void testAppendXMLRepresentation() throws Exception { final ConfigItemMapIndexed m = new ConfigItemMapIndexed("mapindexed"); m.add(this.set); TestHelper.assertXMLEquals( "<config:config-item-map-indexed config:name=\"mapindexed\">" + this.setXML + "</config:config-item-map-indexed>", m); }