@Test
public void testLegacyConfigOnNonDeprecatedSetterClass()
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(LegacyConfigOnNonDeprecatedSetterClass.class, monitor);
    monitor.assertNumberOfErrors(0);
    monitor.assertNumberOfWarnings(1);
    monitor.assertMatchingWarningRecorded("Replaced @LegacyConfig method", "setValue(int)", "should be @Deprecated");
}