@Test
public void testStorePart() throws IOException, B2Exception {

    final B2ContentSource contentSource = mock(B2ContentSource.class);
    final B2UploadingPartStorer partStorer = new B2UploadingPartStorer(PART_NUMBER, contentSource);
    final B2LargeFileStorer largeFileStorer = mock(B2LargeFileStorer.class);
    when(largeFileStorer.uploadPart(anyInt(), anyObject(), anyObject())).thenReturn(part);
    assertEquals(part, partStorer.storePart(largeFileStorer, uploadListener));
    verify(largeFileStorer).uploadPart(2, contentSource, uploadListener);
}