@Test
public void readsContentOfEntityStreamAsUtf8Reader() throws Exception {

    MediaType mediaType = new MediaType("text", "plain");
    byte[] data = TEST_CONTENT.getBytes("UTF-8");
    Reader result = readerEntityProvider.readFrom(Reader.class, String.class, null, mediaType, null, new ByteArrayInputStream(data));
    assertEquals(TEST_CONTENT, CharStreams.toString(result));
}