@Test
public void testFinishLargeFile() throws B2Exception {

    final B2FinishLargeFileRequest request = B2FinishLargeFileRequest
            .builder(fileId(1), new ArrayList<>())
            .build();
    final B2FileVersion fileVersion = makeVersion(1, 2);
    when(webifier.finishLargeFile(anyObject(), eq(request))).thenReturn(fileVersion);
    assertTrue(fileVersion == client.finishLargeFile(request));
    verify(webifier, times(1)).authorizeAccount(anyObject());
    verify(webifier, times(1)).finishLargeFile(anyObject(), anyObject());
}