@Test
public void testThrowInOutputStreamClose() throws B2Exception {

    writer.setThrowInOutputStreamClose();
    thrown.expect(B2Exception.class);
    thrown.expectMessage("couldn't close destination output stream: test throwing in output stream close");
    writer.readContent(makeHeadersWithLenAndSha1(bytes.length, rightSha1), in);
}