@Test
public void testGetFileInfoByName() throws B2Exception {

    final B2FileVersion fileVersion = makeVersion(1, 2);
    final B2GetFileInfoByNameRequest request = B2GetFileInfoByNameRequest
            .builder(bucketName(1), fileName(1))
            .build();
    when(webifier.getFileInfoByName(anyObject(), eq(request))).thenReturn(fileVersion);
    assertEquals(fileVersion, client.getFileInfoByName(request));
    verify(webifier, times(1)).getFileInfoByName(anyObject(), eq(request));
    assertEquals(fileVersion, client.getFileInfoByName(bucketName(1), fileName(1)));
    verify(webifier, times(2)).getFileInfoByName(anyObject(), eq(request));
    // for coverage
    //noinspection ResultOfMethodCallIgnored
    request.hashCode();
}