protected void before() throws Exception {
InputStream is = getClass().getResourceAsStream("/META-INF/rhq-plugin.xml");
PluginDescriptor pd = AgentPluginDescriptorUtil.parsePluginDescriptor(is);
PluginMetadataManager pmm = new PluginMetadataManager();
pmm.addTestPlatformType();
Set<ResourceType> rts = pmm.loadPlugin(pd);
ResourceType resourceType = rts.iterator().next();
configuration = resourceType.getPluginConfigurationDefinition().getDefaultTemplate().createConfiguration();
setConfiguration();