@Test
public void testAbsFunctionDuration() {

    FunctionTestUtil.assertResult(absFunction.invoke(Duration.ofSeconds(100, 50 )),
            Duration.ofSeconds(100, 50));
    FunctionTestUtil.assertResult(absFunction.invoke(Duration.ofSeconds(-100, 50 )),
            Duration.ofSeconds(100, -50));
    FunctionTestUtil.assertResult(absFunction.invoke(Duration.ofSeconds(100, -50 )),
            Duration.ofSeconds(100, -50));
    FunctionTestUtil.assertResult(absFunction.invoke(Duration.ofSeconds(-100, -50 )),
            Duration.ofSeconds(100, 50));
    FunctionTestUtil.assertResultError(absFunction.invoke((Duration)null),
            InvalidParametersEvent.class);
}