@Test
public void getBoolean() throws Exception {

    new DataUtil();
    assertEquals(DataUtil.getBoolean(null, true), true);
    assertEquals(DataUtil.getBoolean(Boolean.TRUE, false), true);
    assertEquals(DataUtil.getBoolean(Boolean.TRUE, false), true);
    assertEquals(DataUtil.getBoolean("True", false), true);
    assertEquals(DataUtil.getBoolean("T", false), true);
    assertEquals(DataUtil.getBoolean("F", true), false);
    assertEquals(DataUtil.getBoolean("DDDDD", true), true);
    assertEquals(DataUtil.getBoolean("DDDDD", false), false);
    assertEquals(DataUtil.getBoolean(1, false), true);
    assertEquals(DataUtil.getBoolean(0, false), false);
    assertEquals(DataUtil.getBoolean(new Object(), false), false);
    assertEquals(DataUtil.getBoolean(new Object(), true), true);
}