@Override
    public void delete(final MultipartUpload upload) throws BackgroundException {
        if(log.isInfoEnabled()) {
            log.info(String.format("Delete multipart upload %s", upload.getUploadId()));
        }
        try {
            session.getClient().multipartAbortUpload(upload);
        }
        catch(S3ServiceException e) {
            throw new S3ExceptionMappingService().map("Cannot delete {0}", e,
                new Path(new Path(PathNormalizer.normalize(upload.getBucketName()), EnumSet.of(Path.Type.directory)),
                    upload.getObjectKey(), EnumSet.of(Path.Type.file)));
        }
    }
@Test
    public void testDelete() throws Exception {
        final Path container = new Path("test-eu-central-1-cyberduck", EnumSet.of(Path.Type.directory, Path.Type.volume));
        final S3DefaultMultipartService service = new S3DefaultMultipartService(session);
        for(MultipartUpload multipart : service.find(container)) {
            service.delete(multipart);
        }
    }