ScopeMap extends ReadOnlyEnumerationMap<Object> { public Object put(String key, Object value) { String skey = key(key); Object previous = context.getValue(skey); context.setValue(skey, value); return previous; } 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 testPutStringObject() { expect(extractor.getValue("one")).andReturn(null); extractor.setValue("one", 1); replay(extractor); assertNull(map.put("one", 1)); verify(extractor); }