@Test
public void testTruncate() {

    Double result1 = NumericFunctions.truncate(1.219, 2);
    Double result2 = NumericFunctions.truncate(123.456, 1);
    Assert.assertEquals(result1, new Double(1.21));
    Assert.assertEquals(result2, new Double(123.4));
}