@Test
public void testEntrySet() {

    IncrementalSortMap<Integer, String> map = map5();
    Set s = map.entrySet();
    assertEquals(5, s.size());
    Iterator it = s.iterator();
    while (it.hasNext()) {
        Map.Entry e = (Map.Entry) it.next();
        assertTrue((e.getKey().equals(one) && e.getValue().equals("A"))
                || (e.getKey().equals(two) && e.getValue().equals("B"))
                || (e.getKey().equals(three) && e.getValue().equals("C"))
                || (e.getKey().equals(four) && e.getValue().equals("D"))
                || (e.getKey().equals(five) && e.getValue().equals("E")));
    }
}