@Test
public void shouldPipeInputStream() throws Exception {

    // When
    final BasicHttpResponse response = buildResponse();
    response.setEntity(new StringEntity(""));
    final InputStream value = Defaults.pipeStream().apply(buildRequest(), response);
    // Then
    assertEquals("", IOUtils.toString(value, Charset.defaultCharset()));
}