@Test
public void abort() {

    String uploadId = "uploadId";
    initializeCreateMultipartUpload(uploadId);
    MultipartManifest manifest =
            assembler.newRequest(CONTENT_TYPE, CONTENT_LANGUAGE, CONTENT_ENCODING, OPC_META);
    when(service.abortMultipartUpload(any(AbortMultipartUploadRequest.class)))
            .thenReturn(AbortMultipartUploadResponse.builder().build());
    assertFalse(manifest.isUploadAborted());
    assertNotNull(assembler.abort());
    assertTrue(manifest.isUploadAborted());
    ArgumentCaptor<AbortMultipartUploadRequest> captor =
            ArgumentCaptor.forClass(AbortMultipartUploadRequest.class);
    verify(service).abortMultipartUpload(captor.capture());
    AbortMultipartUploadRequest request = captor.getValue();
    assertEquals(NAMESPACE, request.getNamespaceName());
    assertEquals(BUCKET, request.getBucketName());
    assertEquals(uploadId, request.getUploadId());
    assertEquals(mockInvocationCallback, request.getInvocationCallback());
}