PluginXMLHelper pluginHelper = new PluginXMLHelper(helper);
Object plugin;
plugin = helper.getConfiguredPlugin(pluginHelper, "testnested");
assertEquals(ListenerTestNestedPlugin.class, plugin.getClass());
ListenerTestNestedPlugin plug1 = (ListenerTestNestedPlugin) plugin;
assertEquals("overriden", plug1.getString());
// not overriden
assertEquals("otherdefault", plug1.getOtherString());
plugin = helper.getConfiguredPlugin(pluginHelper, "testselfconfiguring");
assertEquals(ListenerTestSelfConfiguringPlugin.class, plugin.getClass());
ListenerTestSelfConfiguringPlugin plug2 = (ListenerTestSelfConfiguringPlugin) plugin;
assertEquals(null, plug2.getString());