RioConfig implements Serializable { public <T extends Object> boolean isSet(RioSetting<T> setting) { return settings.containsKey(setting) || systemPropertyCache.containsKey(setting) || hasSystemPropertyOverride(setting); } RioConfig(); @SuppressWarnings("unchecked") T get(RioSetting<T> setting); @SuppressWarnings("unchecked") RioConfig set(RioSetting<T> setting, T value); boolean isSet(RioSetting<T> setting); RioConfig useDefaults();  }
@Test public void testIsSetDefault() throws Exception { assertThat(config.isSet(testSetting)).isFalse(); }
@Test public void testIsSetWithSystemPropertyOverride() throws Exception { System.setProperty(key, "false"); assertThat(config.isSet(testSetting)).isTrue(); }