@Test
public void testLegacyConfigOnGetterClass()
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(LegacyConfigOnGetterClass.class, monitor);
    monitor.assertNumberOfErrors(2);
    monitor.assertNumberOfWarnings(0);
    monitor.assertMatchingErrorRecorded("not a valid setter", "getValue");
    monitor.assertMatchingErrorRecorded("LegacyConfig", "getValue", "not associated with any valid @Config");
}