@Test
public void testReadFromThrowsException() throws Exception {

    final InputStream in = new ByteArrayInputStream(new byte[0]);
    final IOException expectedEx = new IOException("expected exception");
    doThrow(expectedEx).when(innerFilterFactory).readFrom(in);
    assertThatThrownBy(() -> wrapper.readFrom(in)).isEqualTo(expectedEx);
    verify(innerFilterFactory, times(1)).readFrom(in);
}