@Test(expected = IOException.class)
public void failedRead2() throws Exception {

    // When
    failedReleasableInputStream.read(new byte[1024], 0, 1024);
    // Then
    assertTrue(wasCalled.get());
}