@Test
public void testClampInt() {

    Assert.assertEquals(5, MathUtil.clamp(20, 1, 5));
    Assert.assertEquals(2, MathUtil.clamp(-6, 2, 8));
    Assert.assertEquals(4, MathUtil.clamp(4, -7, 19));
    Assert.assertEquals(3, MathUtil.clamp(3, 3, 6));
    Assert.assertEquals(12, MathUtil.clamp(12, 9, 12));
}