@Test
public void readsContentOfEntityStreamAsByteArray() throws Exception {

    byte[] result = byteEntityProvider.readFrom(byte[].class, null, null, MediaType.WILDCARD_TYPE, new MultivaluedMapImpl(),
                                                new ByteArrayInputStream(testContent));
    assertArrayEquals(testContent, result);
}