private static void removeDirectory(Path binDir) throws IOException {
        List<File> classFiles;
        try (Stream<Path> stream = Files.walk(binDir)) {
            classFiles = stream
                    .sorted(Comparator.reverseOrder())
                    .map(Path::toFile)
                    .collect(Collectors.toList());
        }
        for (File classFile : classFiles) {
            if (!classFile.delete()) {
                throw new IOException("Could not delete: " + classFile);
            }
        }
    }
Get all plugin classes which are included in the specified plugins
@param plugins One or more plugins which are included in the plugin path.
@return A list of plugin class names
@throws AssertionError if any plugin failed to load, or no plugins were loaded.
connect/runtime/src/test/java/org/apache/kafka/connect/runtime/isolation/TestPlugins.java