AddableParameterMap extends ReadOnlyEnumerationMap<String> { public String put(String key, String value) { String oldValue = request.getValue(key); request.setValue(key, value); return oldValue; } AddableParameterMap(HasAddableKeys<String> request); Set<Map.Entry<String, String>> entrySet(); String put(String key, String value); void putAll(Map<? extends String, ? extends String> map);  }
@Test public void testPut() { expect(extractor.getValue("one")).andReturn(null); extractor.setValue("one", "value1"); replay(extractor); assertNull(map.put("one", "value1")); verify(extractor); }