@Test
public void testGetUploadUrl() throws B2Exception {

    final B2GetUploadUrlRequest request = B2GetUploadUrlRequest.builder(bucketId(1)).build();
    final B2UploadUrlResponse response = new B2UploadUrlResponse(bucketId(1), "uploadUrl", "uploadAuthToken");
    when(webifier.getUploadUrl(anyObject(), eq(request))).thenReturn(response);
    assertTrue(response == client.getUploadUrl(request));
    verify(webifier, times(1)).authorizeAccount(anyObject());
    verify(webifier, times(1)).getUploadUrl(anyObject(), anyObject());
}