System.out.println("Loading plugin descriptor at: " + descriptorUrl);
pluginDescriptor = AgentPluginDescriptorUtil.parsePluginDescriptor(descriptorUrl
.openStream());
PluginMetadataManager metadataManager = new PluginMetadataManager();
Set<ResourceType> typeSet = metadataManager.loadPlugin(pluginDescriptor);
assert typeSet != null : "Got no types!!";
assert typeSet.size()==5 : "Expected 5 types, but got " + typeSet.size();
ResourceType testService = findType(typeSet,"testService");
assert testService.getSubCategory().equals("applications");