@Test
public void testThrowInGetDestinationOutputStream() throws B2Exception {

    writer.setThrowInGetDestinationOutputStream();
    thrown.expect(B2Exception.class);
    thrown.expectMessage("couldn't open destination output stream to write it: test throw from createDestinationOutputStream");
    writer.readContent(makeHeadersWithLenAndSha1(bytes.length, rightSha1), in);
}