### Question:
S3FileStore implements InternetFileStore { @Override public void delete(final FilePath filePath) { checkInitialization(); try { amazonS3Client.deleteObject(bucketNameForFilePath(filePath), filePath.filename()); } catch (final AmazonS3Exception e) { if (missingItemErrorCodes.contains(e.getErrorCode())) { throw new NonExistentItemException( "Item does not exist" + filePath.directory() + "->" + filePath.filename()); } throw e; } } S3FileStore(final String bucketSchema); void initialize(final AmazonS3 amazonS3Client); @Override FileItem read(final FilePath filePath); @Override void write(final FilePath filePath, final FileItem fileItem); @Override void write(final FilePath filePath, final FileItem fileItem, final String filename); @Override void delete(final FilePath filePath); @Override URL publicUrlForFilePath(final FilePath filePath); @Override List<FilePath> list(final String directory, final String prefix);  }### Answer:
@Test public void shouldNotDelete_whenNotInitialized() { final S3FileStore s3FileStore = new S3FileStore(bucketSchema); IllegalStateException actualException = null; try { s3FileStore.delete(filePath); } catch (final IllegalStateException e) { actualException = e; } assertNotNull(actualException); }