@Test
public void testDeprecatedOption() throws Exception {

	class Provider extends ConfigurationOptionProvider {
		private ConfigurationOption<String> deprecatedOption = ConfigurationOption.stringOption()
				.key("foo")
				.tags("deprecated")
				.buildRequired();
	}
	final ConfigurationRegistry configurationRegistry = ConfigurationRegistry.builder()
			.addOptionProvider(new Provider())
			.addConfigSource(new SimpleSource().add("foo", "bar"))
			.build();
	configurationLogger.logConfiguration(configurationRegistry);
	verify(logger).warn(contains("Detected usage of deprecated configuration option '{}'"), eq("foo"));
}