}
assertEquals(metadata.getAttributes().size(), attributeProperties.keySet().size());
for (String name : attributeProperties.keySet()) {
AttributeMetadata attribute = metadata.getAttributes().get(name);
assertEquals(attribute.getConfigClass(), configClass);
Set<String> namesToTest = Sets.newHashSet();
namesToTest.add(attribute.getInjectionPoint().getProperty());
for (ConfigurationMetadata.InjectionPointMetaData legacyInjectionPoint : attribute.getLegacyInjectionPoints()) {
namesToTest.add(legacyInjectionPoint.getProperty());
}
assertEquals(namesToTest, attributeProperties.get(name));
assertEquals(attribute.getDescription(), description);
assertEquals(attribute.isSecuritySensitive(), securitySensitive);
}
}