{
BooleanConverter booleanConverter = new BooleanConverter();
assertEquals("true", booleanConverter.convertToString(Boolean.TRUE, Locale.getDefault()));
assertEquals("false", booleanConverter.convertToString(Boolean.FALSE, Locale.getDefault()));
assertEquals(Boolean.TRUE, booleanConverter.convertToObject("true", Locale.getDefault()));
assertEquals(Boolean.FALSE, booleanConverter.convertToObject("false", Locale.getDefault()));
try
{
booleanConverter.convertToObject("whatever", Locale.getDefault());
fail("Conversion should have thrown an exception");
}