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