@Test
public void testFileVersions() throws B2Exception {

    final B2ListFileVersionsRequest request = B2ListFileVersionsRequest.builder(bucketId(1)).setMaxFileCount(1000).build();
    final B2FileVersion version1 = makeVersion(1, 1);
    final B2ListFileVersionsResponse response = new B2ListFileVersionsResponse(listOf(version1), null, null);
    when(webifier.listFileVersions(anyObject(), eq(request))).thenReturn(response);
    // with request object
    assertIterContents(client.fileVersions(request),
            version1
    );
    // convenience version.
    assertIterContents(client.fileVersions(bucketId(1)),
            version1
    );
}