@Test
public void testEntrySet() {

    List<String> keys = new ArrayList<String>();
    List<Set<Integer>> values = new ArrayList<Set<Integer>>();
    for (int i = 0; i < Random.getScaleCount(); i++) {
        String key = Random.getString();
        Set<Integer> value = randomValueSet();
        keys.add(key);
        values.add(value);
        map.put(key, value);
    }
    for (Entry<String, Set<Integer>> entry : map.entrySet()) {
        Assert.assertTrue(keys.contains(entry.getKey()));
        Assert.assertTrue(values.contains(entry.getValue()));
    }
    Assert.assertTrue(keys.size() == map.entrySet().size());
    Assert.assertTrue(values.size() == map.entrySet().size());
}