@Test
public void getDouble() throws Exception {

    assertEquals(DataUtil.getDouble(null, 8), 8, 0.1);
    assertEquals(DataUtil.getDouble(Boolean.TRUE, 8), 1, 0.1);
    assertEquals(DataUtil.getDouble(Boolean.FALSE, 9), 0, 0.1);
    assertEquals(DataUtil.getDouble("True", 8), 8, 0.1);
    assertEquals(DataUtil.getDouble("99", 88), 99, 0.1);
    assertEquals(DataUtil.getDouble(" 88 ", 99), 88, 0.1);
    assertEquals(DataUtil.getDouble("DDDDD", 999), 999, 0.1);
    assertEquals(DataUtil.getDouble(new Object(), 333), 333, 0.1);
    assertEquals(DataUtil.getDouble(888l, 333), 888, 0.1);
}