public void testSimpleGenericPlugin() throws Exception {
createPluginJar("testSimpleGenericPlugin.jar", "serverplugins/simple-generic-serverplugin.xml");
this.pluginService.startMasterPluginContainer();
// make sure everything is started
TestGenericServerPluginContainer pc = this.pluginService.genericPC;
assert pc.state == State.STARTED;
TestGenericPluginManager pm = (TestGenericPluginManager) pc.getPluginManager();
TestLifecycleListener component = (TestLifecycleListener) pm.components.values().iterator().next();
assert component.state == LifecycleState.STARTED;
// make sure the context is correct
Configuration config = component.context.getPluginConfiguration();