@Test
public void testGetDownloadByIdUrl() throws B2Exception {

    final String expectedUrl = "http://example.com/blah";
    B2DownloadByIdRequest request = B2DownloadByIdRequest
            .builder(LARGE_FILE_ID)
            .build();
    when(webifier.getDownloadByIdUrl(ACCOUNT_AUTH, request)).thenReturn(expectedUrl);
    assertEquals(expectedUrl, client.getDownloadByIdUrl(request));
    // check the "convenience" form that takes a fileId instead of a request.
    assertEquals(expectedUrl, client.getDownloadByIdUrl(LARGE_FILE_ID));
}