ScopeMap extends ReadOnlyEnumerationMap<Object> { public Set<String> keySet() { return new RemovableKeySet(context); } ScopeMap(AttributeExtractor context); void clear(); Set<Map.Entry<String, Object>> entrySet(); Set<String> keySet(); Object put(String key, Object value); void putAll(Map<? extends String, ? extends Object> map); Object remove(Object key);  }
@Test public void testKeySet() { replay(extractor); assertTrue(map.keySet() instanceof RemovableKeySet); verify(extractor); }