PluginUtils { public static File[] getPluginJars() { File homeDir = new File(System.getProperty("user.home")); logger.info("Searching home directory (" + homeDir.getAbsolutePath() + ") for plugin modules..."); return homeDir.listFiles(new FilenameFilter() { @Override public boolean accept(File directory, String fileName) { return fileName.endsWith(".jar") && fileName.startsWith("plugin"); } }); }  static File[] getPluginJars(); static ArrayList<Class<? extends Plugin>> getPluginsFromExternalJar(File pluginJar, Class pluginType);  }
@Test public void testGetPluginJars() { File[] res = PluginUtils.getPluginJars(); assertNotNull(res); }