@Override
    public boolean isApplicable(Path pluginPath) {
        return Files.exists(pluginPath)
            && (Files.isDirectory(pluginPath)
            || FileUtils.isJarFile(pluginPath));
    }
@Test
    void isApplicable() throws IOException {
        // File not exists
        boolean applicable =
            yamlPluginDescriptorFinder.isApplicable(Path.of("/some/path/test.jar"));
        assertThat(applicable).isFalse();

        // jar file is applicable
        Path tempJarFile = Files.createTempFile("test", ".jar");
        Path tempZipFile = Files.createTempFile("test", ".zip");
        try {
            applicable =
                yamlPluginDescriptorFinder.isApplicable(tempJarFile);
            assertThat(applicable).isTrue();
            // zip file is not applicable
            applicable =
                yamlPluginDescriptorFinder.isApplicable(tempZipFile);
            assertThat(applicable).isFalse();

            // directory is applicable
            applicable =
                yamlPluginDescriptorFinder.isApplicable(tempJarFile.getParent());
            assertThat(applicable).isTrue();
        } finally {
            FileUtils.deleteRecursivelyAndSilently(tempJarFile);
            FileUtils.deleteRecursivelyAndSilently(tempZipFile);
        }
    }