@Test
public void testReadBooleanFromValue() throws Exception {

    assertSame("box true", Boolean.TRUE, converter().readBooleanFromValue("", Boolean.TRUE));
    assertSame("box false", Boolean.FALSE, converter().readBooleanFromValue("", Boolean.FALSE));
    assertTrue("string true", converter().readBooleanFromValue("", "true"));
    assertFalse("string false", converter().readBooleanFromValue("", "false"));
    assertFalse("null false", converter().readBooleanFromValue("", null));
    assertFalse("empty string false", converter().readBooleanFromValue("", ""));
    assertFalse("null string false", converter().readBooleanFromValue("", "null"));
    assertFalse("integer always false", converter().readBooleanFromValue("", 1));
    assertFalse("long always false", converter().readBooleanFromValue("", 1L));
    assertFalse("float always false", converter().readBooleanFromValue("", 1.0F));
    assertFalse("double always false", converter().readBooleanFromValue("", 1.0D));
}