@Test
public void testBetween0And1() {

    Assertions.assertThat(MathExt.between(1.1, 0.0, 1.0)).isEqualTo(1.0);
    Assertions.assertThat(MathExt.between(1.0, 2.0, 10.0)).isEqualTo(2.0);
    Assertions.assertThat(MathExt.between(0.5, 0.0, 1.0)).isEqualTo(0.5);
}