void () { final SortedList<String> list = createList(); list.add("b"); list.add("a"); final Iterator<String> iterator = list.iterator(); assertEquals("a", iterator.next()); iterator.remove(); assertEquals("b", iterator.next()); assertFalse(iterator.hasNext()); assertEquals(1, list.size()); assertEquals("b", list.get(0)); list.add("c"); assertEquals(2, list.size()); assertEquals("b", list.get(0)); assertEquals("c", list.get(1)); }