ConfigItemMapIndexed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry set(final int index, final ConfigItemMapEntry element) { return this.list.set(index, element); } 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(expected = IndexOutOfBoundsException.class) public void testSet() { final ConfigItemMapIndexed m = new ConfigItemMapIndexed("mapindexed"); m.set(1, this.set); }