@Test
public void testGetDownloadAuthorization() throws B2Exception {

    final B2DownloadAuthorization downloadAuth = new B2DownloadAuthorization(bucketId(1), FILE_PREFIX, "downloadAuthToken");
    final B2GetDownloadAuthorizationRequest request = B2GetDownloadAuthorizationRequest.builder(bucketId(1), FILE_PREFIX, 100).build();
    when(webifier.getDownloadAuthorization(anyObject(), eq(request))).thenReturn(downloadAuth);
    assertEquals(downloadAuth, client.getDownloadAuthorization(request));
    verify(webifier, times(1)).getDownloadAuthorization(anyObject(), eq(request));
    // for coverage
    //noinspection ResultOfMethodCallIgnored
    request.hashCode();
    assertEquals(request, B2GetDownloadAuthorizationRequest.builder(bucketId(1), FILE_PREFIX, 100).build());
}