@Override
    public boolean put(File localFile, JobID jobId, BlobKey blobKey) throws IOException {
        createBasePathIfNeeded();
        String toBlobPath = BlobUtils.getStorageLocationPath(basePath, jobId, blobKey);
        try (FSDataOutputStream os =
                fileSystem.create(new Path(toBlobPath), FileSystem.WriteMode.OVERWRITE)) {
            LOG.debug("Copying from {} to {}.", localFile, toBlobPath);
            Files.copy(localFile, os);

            os.sync();
        }
        return true;
    }
@Test
    void testMissingFilePut() {
        assertThatThrownBy(
                        () ->
                                testInstance.put(
                                        new File("/not/existing/file"),
                                        new JobID(),
                                        new PermanentBlobKey()))
                .isInstanceOf(FileNotFoundException.class);
    }