@Test
public void shouldReturnEmptyStringForNullResponseMessage() throws Throwable {

  when(mockHttpURLConnection.getResponseMessage()).thenReturn(null);
  final HttpResponse httpResponse = httpFunction().apply(HTTP_GET_REQUEST).get();
  assertThat(httpResponse.getResponseMessage(), is(""));
  verify(mockHttpURLConnection).disconnect();
}