### Question:
BooleanConverter extends DefaultObjectConverter<Boolean> { @Override public Boolean fromString(String string, ConverterContext context) { if (string.equalsIgnoreCase(getTrue())) { return Boolean.TRUE; } else if (string.equalsIgnoreCase("true")) { return Boolean.TRUE; } else if (string.equalsIgnoreCase(getFalse())) { return Boolean.FALSE; } else if (string.equalsIgnoreCase("false")) { return Boolean.FALSE; } else { return null; } } BooleanConverter(); @Override String toString(Boolean object, ConverterContext context); @Override Boolean fromString(String string, ConverterContext context);  }### Answer:
@Test public void testFromString() throws Exception { Assert.assertEquals(Boolean.TRUE, _converter.fromString("true")); Assert.assertEquals(Boolean.TRUE, _converter.fromString("True")); Assert.assertEquals(Boolean.FALSE, _converter.fromString("false")); Assert.assertEquals(Boolean.FALSE, _converter.fromString("False")); }