@SuppressWarnings("unchecked")
@Test
public void testIterator() {

    Enumeration<String> keys = createMock(Enumeration.class);
    Enumeration<String> values2 = createMock(Enumeration.class);
    expect(extractor.getKeys()).andReturn(keys);
    expect(keys.hasMoreElements()).andReturn(true);
    expect(keys.nextElement()).andReturn("two");
    replay(extractor, keys, values2);
    Iterator<String> entryIt = entrySet.iterator();
    assertTrue(entryIt.hasNext());
    assertEquals("two", entryIt.next());
    verify(extractor, keys, values2);
}