@Test
public void testDoubleOrFloatField () {

    Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(0));
    Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(Integer.MAX_VALUE + 1));
    Assert.assertTrue(ConfigFieldValidation.isFloatOrDouble(0.0d));
    Assert.assertFalse(ConfigFieldValidation.isFloatOrDouble(null));
    Assert.assertFalse(ConfigFieldValidation.isFloatOrDouble("string"));
}