@Test
public void testLegacyConfigOnSetterClass()
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(LegacyConfigOnSetterClass.class, monitor);
    monitor.assertNumberOfErrors(1);
    monitor.assertNumberOfWarnings(0);
    monitor.assertMatchingErrorRecorded("LegacyConfig", "setValue", "not associated with any valid @Config");
}