TextMapInjectAdapter implements TextMapInject { @Override public void put(String key, String value) { this.map.put(key, value); } TextMapInjectAdapter(final Map<String, ? super String> map); @Override void put(String key, String value);  }
@Test public void testPut() { Map<String, Object> headers = new LinkedHashMap<String, Object>(); TextMapInjectAdapter injectAdapter = new TextMapInjectAdapter(headers); injectAdapter.put("foo", "bar"); assertEquals("bar", headers.get("foo")); }