@Test
public void testFileNames() throws B2Exception {

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