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