Tuple t = TupleFactory.getInstance().newTuple(2);
t.set(0, new DateTime("2009-01-07T00:00:00.000Z"));
t.set(1, new DateTime("2002-01-01T00:00:00.000Z"));
YearsBetween func1 = new YearsBetween();
Long years = func1.exec(t);
System.out.println("Years: " + years.toString());
Assert.assertEquals(years.longValue(), 7L);
MonthsBetween func2 = new MonthsBetween();
Long months = func2.exec(t);