@Test
public void testParts() throws B2Exception {

    final B2ListPartsRequest request = B2ListPartsRequest.builder(LARGE_FILE_ID).setMaxPartCount(100).build();
    final B2Part part = makePart(1);
    final B2ListPartsResponse response = new B2ListPartsResponse(listOf(part), null);
    when(webifier.listParts(anyObject(), eq(request))).thenReturn(response);
    // with request object
    assertIterContents(client.parts(request),
            part
    );
    // convenience version.
    assertIterContents(client.parts(LARGE_FILE_ID),
            part
    );
}