@Test
public void shouldGetEmptyBodyFromGetResponseOfZeroLength() throws Throwable {

  final InputStream inputStream = mock(InputStream.class);
  when(mockHttpURLConnection.getInputStream()).thenReturn(inputStream);
  when(mockHttpURLConnection.getContentLength()).thenReturn(0);
  assertThat(httpFunction().apply(HTTP_GET_REQUEST).get().getBody(), is(EMPTY_BODY));
  verify(mockHttpURLConnection).disconnect();
  verifyZeroInteractions(inputStream);
}