assertEquals("k2",iterator.next());
assertTrue(iterator.hasNext());
assertEquals("k3",iterator.next());
assertFalse(iterator.hasNext());
Set set = map.entrySet();
iterator = set.iterator();
assertTrue(iterator.hasNext());
Map.Entry next = (Map.Entry) iterator.next();
assertEquals("k1", next.getKey());
assertEquals("v1", next.getValue());