@Test
public void shouldPassOnPostMethod() throws Throwable {

  assertThat(httpFunction()
          .apply(HTTP_POST_REQUEST),
      is(notNullValue()));
  verify(mockHttpURLConnection).setRequestMethod(POST_METHOD);
  verify(mockHttpURLConnection).disconnect();
}