### Question:
BooleanStringConverter implements Converter { @Override public Object coerceToBean(Object value, Component comp, BindContext ctx) { Boolean bool = (Boolean) value; return bool.toString(); }  @Override Object coerceToUi(Object value, Component comp, BindContext ctx); @Override Object coerceToBean(Object value, Component comp, BindContext ctx);  }### Answer:
@Test public void testBooleanShouldBeConvertedToTrue() throws Exception { boolean bool = true; assertEquals(boolStrConverter.coerceToBean(bool, null, null), "true"); }
@Test public void testBooleanShouldBeConvertedToFalse() throws Exception { boolean bool = false; assertEquals(boolStrConverter.coerceToBean(bool, null, null), "false"); }
@Test public void testBooleanObjectShouldBeConvertedToTrue() throws Exception { Boolean bool = true; assertEquals(boolStrConverter.coerceToBean(bool, null, null), "true"); }
@Test public void testBooleanObjectShouldBeConvertedToFalse() throws Exception { Boolean bool = false; assertEquals(boolStrConverter.coerceToBean(bool, null, null), "false"); }