@Test
public void testDeprecatedConfigOnGetterOnlyClass()
        throws Exception
{

    TestMonitor monitor = new TestMonitor();
    ConfigurationMetadata<?> metadata = ConfigurationMetadata.getConfigurationMetadata(DeprecatedConfigOnGetterOnlyClass.class, monitor);
    Map<String, Set<String>> expectedAttributes = new HashMap<>();
    expectedAttributes.put("Value", ImmutableSet.of("value"));
    expectedAttributes.put("Deprecated", ImmutableSet.of("deprecated-value"));
    verifyMetaData(metadata, DeprecatedConfigOnGetterOnlyClass.class, null, false, expectedAttributes);
    monitor.assertNumberOfErrors(1);
    monitor.assertNumberOfWarnings(0);
    monitor.assertMatchingErrorRecorded("getDeprecated", "setDeprecated", "must be @Deprecated together");
}