### Question:
FileLockFactory { public CloseableLock getLock(final File file) throws LockException { return new FileLock(file); }  CloseableLock getLock(final File file);  }### Answer:
@Test void canGetTaskExecutor(@TempDir final Path tmpDir) throws IOException, LockException { Assertions .assertThat( this.fileLockFactory.getLock(Files.createFile(tmpDir.resolve(UUID.randomUUID().toString())).toFile()) ) .isInstanceOf(FileLock.class); }