ConfigItemMapIndexed implements ConfigItemCollection<ConfigItemMapEntry> { @Override public Iterator<ConfigItemMapEntry> iterator() { return this.list.iterator(); } 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 testIterator() { final ConfigItemMapIndexed m = new ConfigItemMapIndexed("mapindexed"); m.add(this.set); final Iterator<ConfigItemMapEntry> i = m.iterator(); Assert.assertTrue(i.hasNext()); Assert.assertEquals(this.set, i.next()); Assert.assertFalse(i.hasNext()); }