@Test
public void testContainsKey() {

    expect(extractor.getValue("one")).andReturn(1);
    expect(extractor.getValue("two")).andReturn(null);
    replay(extractor);
    assertTrue(map.containsKey("one"));
    assertFalse(map.containsKey("two"));
    verify(extractor);
}