@Test
public void shouldPassOnRequestHeaders() throws Throwable {

  assertThat(httpFunction().apply(HTTP_GET_REQUEST_WITH_HEADERS), is(notNullValue()));
  verify(mockHttpURLConnection).addRequestProperty("name", "value");
  verify(mockHttpURLConnection).addRequestProperty("name2", "value2");
  verify(mockHttpURLConnection).disconnect();
}