SOAPMessageInjectAdapter implements TextMap { @Override public void put(String key, String value) { headers.put(key, Collections.singletonList(value)); } SOAPMessageInjectAdapter(SOAPMessageContext context); @Override Iterator<Map.Entry<String, String>> iterator(); @Override void put(String key, String value);  }
@Test public void put() throws Exception { soapMessageInjectAdapter.put("foo", "bar"); verify(soapMessageContext).put(eq(SOAPMessageContext.HTTP_REQUEST_HEADERS), eq(singletonMap("foo", singletonList("bar")))); }