### Question:
InMemoryFileStore implements FileStore, Resettable { @Override public FileItem read(final FilePath filePath) throws NonExistentItemException { final SerializedItem fileItem = fileItems.get(filePath); if (fileItem == null) { throw new NonExistentItemException("No FileItem for file path: " + filePath); } return fileItem.getEntity(FileItem.class); } InMemoryFileStore(); @Override FileItem read(final FilePath filePath); @Override void write(final FilePath filePath, final FileItem fileItem); @Override void delete(final FilePath filePath); @Override List<FilePath> list(final String directory, final String prefix); @Override void reset();  }### Answer:
@Test public void shouldNotDelete_nonExistentItemFromFilePath() throws Exception { final FilePath filePath = randomFilePath(); final InMemoryFileStore fileStore = new InMemoryFileStore(); NonExistentItemException actualException = null; try { fileStore.read(filePath); } catch (final NonExistentItemException e) { actualException = e; } assertNotNull(actualException); }