### Question:
BinaryTransferSessionImpl implements BinaryTransferSession { @Override public void delete(URI fileUri) { getStreamClient().delete(fileUri); } BinaryTransferSessionImpl(IngestSourceManager sourceManager, StorageLocation storageLocation); @Override void close(); @Override URI transfer(PID binPid, URI sourceFileUri); @Override URI transferReplaceExisting(PID binPid, URI sourceFileUri); @Override URI transferVersion(PID binPid, URI sourceFileUri); @Override URI transfer(PID binPid, InputStream sourceStream); @Override URI transferReplaceExisting(PID binPid, InputStream sourceStream); @Override URI transferVersion(PID binPid, InputStream sourceStream); @Override void delete(URI fileUri); @Override BinaryDetails getStoredBinaryDetails(PID binPid); @Override boolean isTransferred(PID binPid, URI sourceUri);  }### Answer:
@Test public void deleteBinaryFSToFS() throws Exception { when(ingestSource.getStorageType()).thenReturn(FILESYSTEM); when(storageLoc.getStorageType()).thenReturn(FILESYSTEM); Files.createDirectories(binDestPath.getParent()); createFile(binDestPath, "some stuff"); Path sourceFile = createSourceFile(); try (BinaryTransferSessionImpl session = new BinaryTransferSessionImpl(sourceManager, storageLoc)) { session.delete(sourceFile.toUri()); } assertFalse("File must be deleted", Files.exists(sourceFile)); }