@Test
public void testYearsAndMonthsFunction_invokeLocalDateTime() {

    FunctionTestUtil.assertResult(
            yamFunction.invoke(
                    LocalDateTime.of(2017, 6, 12, 12, 43),
                    LocalDate.of(2020, 7, 13)),
            ComparablePeriod.of(3, 1, 0));
}