@Test
public void testInterruptedWhenCallingGet() throws B2Exception, IOException {

    // arrange to answer startLargeRequest
    final B2FileVersion largeFileVersion = makeVersion(1, 2);
    when(webifier.startLargeFile(anyObject(), anyObject())).thenReturn(largeFileVersion);
    // we have to return
    final ExecutorService executor = new ThrowingExecutor(IN_GET, ExceptionType.INTERRUPTED);
    recordingListener.setExpected(
            "B2UploadProgress{partIndex=0, partCount=2, startByte=0, length=1000, bytesSoFar=0, state=WAITING_TO_START}",
            "B2UploadProgress{partIndex=1, partCount=2, startByte=1000, length=1000, bytesSoFar=0, state=WAITING_TO_START}"
            // nothing else cuz it throws.
    );
    thrown.expect(B2LocalException.class);
    thrown.expectMessage("interrupted while trying to upload parts: java.lang.InterruptedException: sleep interrupted");
    makeUploader(PART_SIZES, executor, contentSource, recordingListener).uploadLargeFile();
}