@Override
    public File getFile(JobID jobId, PermanentBlobKey key) throws IOException {
        checkNotNull(jobId);
        return getFileInternal(jobId, key);
    }
@Test
    void permanentBlobCacheCanServeFilesFromPrepopulatedStorageDirectory(
            @TempDir Path storageDirectory) throws IOException {

        final JobID jobId = new JobID();

        final byte[] fileContent = "foobar".getBytes(StandardCharsets.UTF_8);
        final PermanentBlobKey blobKey =
                TestingBlobUtils.writePermanentBlob(storageDirectory, jobId, fileContent);
        try (PermanentBlobCache permanentBlobCache =
                new PermanentBlobCache(
                        new Configuration(),
                        storageDirectory.toFile(),
                        new VoidBlobStore(),
                        null)) {
            final File blob = permanentBlobCache.getFile(jobId, blobKey);

            assertThat(Files.readAllBytes(blob.toPath())).isEqualTo(fileContent);
        }
    }