InputStreamDeserializer extends TypeDeserializer<InputStream> { @Override protected InputStream deserialize(InputStream stream, Charset charset) { return stream; }    }
@Test public void shouldReturnGivenInputStream(){ InputStream given = mock(InputStream.class); InputStream actual = toTest.deserialize(given, null); assertSame(given, actual); }