bucketCopier.copyBucket(bucket);
verify(deletesBuckets).deleteBucket(exportedBucket);
}
public void copyBucket_whenExceptionIsThrown_deleteExportedBucket() {
LocalBucket exportedBucket = getMockedBucketReturnFromExporter();
doThrow(new RuntimeException()).when(archiveBucketTransferer)
.transferBucketToArchive(exportedBucket);
try {
bucketCopier.copyBucket(bucket);
} catch (Throwable e) {