@Test
public void testDeprecatedMapConfigTypesNotConcreteClass()
        throws Exception
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(DeprecatedMapConfigTypesNotConcreteClass.class, monitor);
    Map<String, Set<String>> expectedAttributes = new HashMap<>();
    expectedAttributes.put("Value", ImmutableSet.of("value"));
    verifyMetaData(metadata, DeprecatedMapConfigTypesNotConcreteClass.class, null, false, expectedAttributes);
    // This condition unfortunately generates cascades, so don't test number of errors/warnings
    monitor.assertMatchingErrorRecorded("Configuration setter method", "setValue", "Map key type is not a concrete class");
    monitor.assertMatchingErrorRecorded("Configuration setter method", "setValue", "Map value type is not a concrete class");
}