@Test
public void testClampDouble() {

    Assert.assertEquals(5.1d, MathUtil.clamp(20.6d, 1.8d, 5.1d), 0);
    Assert.assertEquals(2.2d, MathUtil.clamp(-6.1d, 2.2d, 8.3d), 0);
    Assert.assertEquals(4.3d, MathUtil.clamp(4.3d, -7.1d, 19.7d), 0);
    Assert.assertEquals(3.4d, MathUtil.clamp(3.4d, 3.4d, 6.8d), 0);
    Assert.assertEquals(12.5d, MathUtil.clamp(12.5d, 9.3d, 12.5d), 0);
}