@Test
public void testCurrentAndLegacyConfigOnGetterClass()
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(CurrentAndLegacyConfigOnGetterClass.class, monitor);
    monitor.assertNumberOfErrors(1);
    monitor.assertNumberOfWarnings(0);
    monitor.assertMatchingErrorRecorded("not a valid setter", "getValue");
}