ConfigItemMapEntrySequence implements ConfigItemMapEntry { public void remove(final int i) { this.blocks.remove(i); } ConfigItemMapEntrySequence(final String name, final List<ConfigBlock> blocks); static ConfigItemMapEntrySequence createSequence(); static ConfigItemMapEntrySequence createSequence(final String name); @Override String getName(); @Override int size(); @Override boolean isEmpty(); @Override boolean add(final ConfigBlock block); @Override ConfigBlock put(final ConfigBlock block); void remove(final int i); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override Iterator<ConfigBlock> iterator(); String set(final int i, final String value); @Override boolean add(final String name, final String type, final String value);  }
@Test public void testRemove() { this.sequence.add(this.block); this.sequence.remove(0); }
@Test(expected = IndexOutOfBoundsException.class) public void remove2() { this.sequence.remove(10); }