HttpRequestForPropagation implements HttpObjectForPropagation { @Override public void setHeader(String headerKey, String headerValue) { httpRequest.setHeader(headerKey, headerValue); } HttpRequestForPropagation(HttpRequest httpRequest); @Override void setHeader(String headerKey, String headerValue);  }
@Test public void setHeader_passes_through_to_httpRequest() { HttpRequest requestMock = mock(HttpRequest.class); HttpRequestForPropagation impl = new HttpRequestForPropagation(requestMock); String headerKey = UUID.randomUUID().toString(); String headerValue = UUID.randomUUID().toString(); impl.setHeader(headerKey, headerValue); verify(requestMock).setHeader(headerKey, headerValue); }