DeleteAllKeysInList testDeleter = createMockBuilder(
DeleteAllKeysInList.class).withConstructor(executorService,
blobstore, retryHandler, maxParallelDeletes).createMock();
// Fail the first future that is created for deleting blobs.
EasyMock.<ListenableFuture<?>> expect(
executorService.submit(isA(Callable.class)))
.andReturn(
Futures.<Void> immediateFailedFuture(new RuntimeException()))
.once();
// There should be at least another 3333 calls to executorService.submit
// since there are 3333 blobs.