@Test
public void failedWrite() throws Exception {

    // When
    try {
        failedReleasableOutputStream.write('a');
    } catch (IOException e) {
        // Ignored
    }
    // Then
    assertTrue(wasCalled.get());
}