@Test
public void readsContentOfEntityStreamAsInputStream() throws Exception {

    InputStream in = new ByteArrayInputStream(testContent);
    InputStream result = inputStreamEntityProvider.readFrom(InputStream.class, null, null, null, null, in);
    assertArrayEquals(testContent, ByteStreams.toByteArray(result));
}