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

    Enumeration<String> keys = createMock(Enumeration.class);
    Enumeration<String> values1 = createMock(Enumeration.class);
    Enumeration<String> values2 = createMock(Enumeration.class);
    expect(extractor.getKeys()).andReturn(keys);
    expect(keys.hasMoreElements()).andReturn(true);
    expect(keys.nextElement()).andReturn("one");
    expect(keys.hasMoreElements()).andReturn(true);
    expect(keys.nextElement()).andReturn("two");
    expect(keys.hasMoreElements()).andReturn(false);
    expect(extractor.getValues("one")).andReturn(values1);
    expect(values1.hasMoreElements()).andReturn(true);
    expect(values1.nextElement()).andReturn("value1");
    expect(values1.hasMoreElements()).andReturn(false);
    expect(extractor.getValues("two")).andReturn(values2);
    expect(values2.hasMoreElements()).andReturn(true);
    expect(values2.nextElement()).andReturn("value2");
    expect(values2.hasMoreElements()).andReturn(true);
    expect(values2.nextElement()).andReturn("value3");
    expect(values2.hasMoreElements()).andReturn(false);
    replay(extractor, keys, values1, values2);
    assertFalse(map.containsValue(new String[] {"value2", "value4"}));
    verify(extractor, keys, values1, values2);
}