@Test
public void testTroubleDuringDownload() throws B2Exception {

    final HelperSimulator helper = new HelperSimulator();
    helper.throwDuringDownload = true;
    final B2ContentOutputStreamWriter writer = B2ContentOutputStreamWriter.builder(helper).build();
    try {
        writer.readContent(makeHeaderWithSha1(), in);
        fail("should've thrown!");
    } catch (RuntimeException ignored) {
        // we're expecting this!
    }
    helper.check(
            1,
            0,
            0,
            1
    );
}