### Question:
TransactionalFileStore implements FileStore, TransactionalResource { @Override public FileItem read(final FilePath filePath) throws NonExistentItemException { return fileStore.read(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 shouldRead_withItemIdAndItemClass() throws Exception { final FilePath filePath = mock(FilePath.class); final FileItem mockFileItem = mock(FileItem.class); when(mockFileStore.read(any(FilePath.class))).thenReturn(mockFileItem); final TransactionalFileStore transactionalFileStore = new TransactionalFileStore(mockFileStore); final FileItem returnedFileItem = transactionalFileStore.read(filePath); verify(mockFileStore).read(filePath); assertEquals(mockFileItem, returnedFileItem); }