@Test
public void testGetDownloadByNameUrl() throws B2Exception {

    final String expectedUrl = "http://example.com/blah";
    B2DownloadByNameRequest request = B2DownloadByNameRequest
            .builder(bucketName(1), fileName(1))
            .build();
    when(webifier.getDownloadByNameUrl(ACCOUNT_AUTH, request)).thenReturn(expectedUrl);
    assertEquals(expectedUrl, client.getDownloadByNameUrl(request));
    // check the "convenience" form that takes a bucketName & fileName instead of a request.
    assertEquals(expectedUrl, client.getDownloadByNameUrl(bucketName(1), fileName(1)));
}