return pluginDescriptor.getAmpsVersion();
}
protected ResourceType assertResourceTypeAssociationEquals(String resourceTypeName, String plugin,
String propertyName, List<String> expected) throws Exception {
SubjectManagerLocal subjectMgr = LookupUtil.getSubjectManager();
ResourceTypeManagerLocal resourceTypeMgr = LookupUtil.getResourceTypeManager();
String fetch = "fetch" + WordUtils.capitalize(propertyName);
ResourceTypeCriteria criteria = new ResourceTypeCriteria();
criteria.addFilterName(resourceTypeName);
criteria.addFilterPluginName(plugin);
criteria.setStrict(true);
criteria.fetchBundleConfiguration(true);
criteria.fetchDriftDefinitionTemplates(true);
MethodUtils.invokeMethod(criteria, fetch, true);
List<ResourceType> resourceTypes = resourceTypeMgr.findResourceTypesByCriteria(subjectMgr.getOverlord(),
criteria);
assertEquals("too many types!", 1, resourceTypes.size());
ResourceType resourceType = resourceTypes.get(0);
Set<String> expectedSet = new HashSet<String>(expected);
List<String> missing = new ArrayList<String>();