### Question:
LockFileHandler { public void deleteLockAndCleanUp() { synchronized(monitor) { try { hotfolder.deleteIfExists(lockUri); } catch (IOException e) { logger.error("Error while deleting lock file: " + lockUri, e); } } }  void initConnection(String serverUrl, String user, String password); void createOrOverwriteLock(boolean overwriteLock); void deleteLockAndCleanUp();  }### Answer:
@Test public void shouldDeleteLock() throws IOException { lockHandlerSut.deleteLockAndCleanUp(); verify(hotfolderMock).deleteIfExists(lockUri); }