AddableParameterMap extends ReadOnlyEnumerationMap<String> { public void putAll(Map<? extends String, ? extends String> map) { for (Map.Entry<? extends String, ? extends String> entry : map .entrySet()) { request.setValue(entry.getKey(), entry.getValue()); } } 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 testPutAll() { Map<String, String> map = new HashMap<String, String>(); map.put("one", "value1"); map.put("two", "value2"); extractor.setValue("one", "value1"); extractor.setValue("two", "value2"); replay(extractor); this.map.putAll(map); verify(extractor); }