@Test
public void getEntityShouldReturnResponseEntity() throws Exception {

    InputStream expected = mock(InputStream.class);
    when(mockResponse.getEntity()).thenReturn(expected);
    HttpChannelResponseHttpResource toTest = newToTest();
    assertSame(expected, toTest.getEntity());
}