@Test
public void testThrowInCreateDestinationInputStream() throws B2Exception {

    writer.setThrowInCreateDestinationInputStream();
    thrown.expect(B2Exception.class);
    thrown.expectMessage("couldn't open destination input stream to check it: test throw from createDestinationInputStream");
    writer.readContent(makeHeadersWithLenAndSha1(bytes.length, rightSha1), in);
}