@Test
public void testEntrySet() {

    Set<Map.Entry<String, String>> entrySet = map.entrySet();
    MapEntry<String, String> entry1 = new MapEntry<String, String>("one", "value1", false);
    MapEntry<String, String> entry2 = new MapEntry<String, String>("two", "value2", false);
    List<Map.Entry<String, String>> entries = new ArrayList<Map.Entry<String, String>>(2);
    entries.add(entry1);
    entries.add(entry2);
    extractor.setValue("one", "value1");
    expectLastCall().times(2);
    extractor.setValue("two", "value2");
    replay(extractor);
    entrySet.add(entry1);
    entrySet.addAll(entries);
    verify(extractor);
}