ListeningExecutorService executorService = mockControl
.createMock(ListeningExecutorService.class);
DeleteAllKeysInList testDeleter = createMockBuilder(
DeleteAllKeysInList.class).withConstructor(executorService,
blobStore, retryHandler, maxParallelDeletes).createMock();
EasyMock.<PageSet<? extends StorageMetadata>> expect(blobStore.list(
isA(String.class), isA(ListContainerOptions.class)))
.andThrow(new ContainerNotFoundException()).once();
replay(blobStore);
testDeleter.execute(containerName,
ListContainerOptions.Builder.recursive());