### Question:
TransactionalFileStore implements FileStore, TransactionalResource { @Override public void delete(final FilePath filePath) throws NonExistentItemException { final FileStoreTransaction transaction = getCurrentTransaction(); transaction.addDeleteAction(filePath); } TransactionalFileStore(final FileStore fileStore); @Override void begin(); @Override void commit(); @Override FileItem read(final FilePath filePath); @Override void write(final FilePath filePath, final FileItem fileItem); @Override void delete(final FilePath filePath); @Override void abort(); @Override List<FilePath> list(final String directory, final String prefix);  }### Answer:
@Test public void shouldNotDelete_withNonExistingTransaction() throws Exception { final TransactionalFileStore transactionalFileStore = new TransactionalFileStore(mockFileStore); final FilePath filePath = mock(FilePath.class); NonExistentTransactionException actualException = null; try { transactionalFileStore.delete(filePath); } catch (final NonExistentTransactionException e) { actualException = e; } assertNotNull(actualException); }