HttpHeadersForPropagation implements HttpObjectForPropagation { @Override public void setHeader(String headerKey, String headerValue) { httpHeaders.set(headerKey, headerValue); } HttpHeadersForPropagation(HttpHeaders httpHeaders);  HttpHeadersForPropagation(HttpMessage httpMessage); @Override void setHeader(String headerKey, String headerValue);  }
@Test public void setHeader_passes_through_to_httpHeaders() { HttpHeaders headersMock = mock(HttpHeaders.class); HttpHeadersForPropagation impl = new HttpHeadersForPropagation(headersMock); String headerKey = UUID.randomUUID().toString(); String headerValue = UUID.randomUUID().toString(); impl.setHeader(headerKey, headerValue); verify(headersMock).set(headerKey, headerValue); }