@@ -0,0 +1,858 @@
+package ijx.plugin;%0A%0Aimport imagej2.plugin.PluginEntry;%0Aimport imagej2.plugin.PluginFinder;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collection;%0Aimport java.util.List;%0A%0Aimport org.openide.util.Lookup;%0A%0Apublic class PluginDiscovery %7B%0A%0A%09/**%0A%09 * Tests the plugin discovery mechanism,%0A%09 * printing a list of all discovered plugins.%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09System.out.println(%22Scanning for plugin finders...%22);%0A%09%09Collection%3C? extends PluginFinder%3E finders =%0A%09%09%09Lookup.getDefault().lookupAll(PluginFinder.class);%0A%09%09List%3CPluginEntry%3E plugins = new ArrayList%3CPluginEntry%3E();%0A%09%09for (PluginFinder finder : finders) %7B%0A%09%09%09System.out.println(%22Querying %22 + finder + %22...%22);%0A%09%09%09finder.findPlugins(plugins);%0A%09%09%7D%0A%09%09System.out.println(%22Discovered plugins:%22);%0A%09%09for (PluginEntry plugin : plugins) %7B%0A%09%09%09System.out.println(%22%5Ct%22 + plugin);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Add test class for plugin discovery logic.