@Test public void shouldReturnGivenInputStreamAsAReader(){ InputStream in = mock(InputStream.class); Reader actual = toTest.deserialize(in, UTF8); assertTrue(actual instanceof InputStreamReader); assertEquals("UTF8", ((InputStreamReader) actual).getEncoding()); }
@Override protected Reader deserialize(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); }
ReaderDeserializer extends TypeDeserializer<Reader> { @Override protected Reader deserialize(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); } }
ReaderDeserializer extends TypeDeserializer<Reader> { @Override protected Reader deserialize(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); }  }
ReaderDeserializer extends TypeDeserializer<Reader> { @Override protected Reader deserialize(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); }   }
ReaderDeserializer extends TypeDeserializer<Reader> { @Override protected Reader deserialize(InputStream stream, Charset charset) { return new InputStreamReader(stream, charset); }    }