private void verifyDriftDefinition(PluginDescriptor descriptor, String resourceTypeName, String driftDefName,
AssertDriftTemplateRunnable test) throws Exception {
Map<String, PluginMetadataParser> parsersByPlugin = new HashMap<String, PluginMetadataParser>(0);
PluginMetadataParser parser = new PluginMetadataParser(descriptor, parsersByPlugin);
ResourceType resourceType = findResourceType(parser, resourceTypeName);
Set<DriftDefinitionTemplate> driftTemplates = resourceType.getDriftDefinitionTemplates();
DriftDefinitionTemplate driftTemplate = null;
for (DriftDefinitionTemplate template : driftTemplates) {
if (template.getName().equals(driftDefName)) {