BooleanRioSetting extends AbstractRioSetting<Boolean> { @Override public Boolean convert(String stringValue) { return Boolean.valueOf(stringValue); } BooleanRioSetting(String key, String description, Boolean defaultValue); @Override Boolean convert(String stringValue);  }
@Test public void testConvertLegalStringVariants() throws Exception { assertThat(subject.convert("True")).isTrue(); assertThat(subject.convert("Foo")).isFalse(); assertThat(subject.convert("false")).isFalse(); assertThat(subject.convert("1")).isFalse(); }