@Test
public void failedWrite2() throws Exception {

    // When
    try {
        failedReleasableOutputStream.write(new byte[] { 'a', 'b' }, 0, 2);
    } catch (IOException e) {
        // Ignored
    }
    // Then
    assertTrue(wasCalled.get());
}