    @Test
    public void testEntrySet() throws IOException {

        SharedHashMap 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(JSR166TestCase.one) && e.getValue().equals("A")) ||
                            (e.getKey().equals(JSR166TestCase.two) && e.getValue().equals("B")) ||
                            (e.getKey().equals(JSR166TestCase.three) && e.getValue().equals("C")) ||
                            (e.getKey().equals(JSR166TestCase.four) && e.getValue().equals("D")) ||
                            (e.getKey().equals(JSR166TestCase.five) && e.getValue().equals("E"))
            );
        }
    }