//calcul Distance with instant objects
cal.set(2000, 0, 1);
Position position = new DefaultPosition(cal.getTime());
other = new DefaultInstant(position);
Duration result = temporalGeomericPrimitive1.distance(other);
assertFalse(temporalGeomericPrimitive2.distance(other).equals(result));
//calcul Distance with instant and period
cal.set(2009, 1, 1);
Instant i1 = new DefaultInstant(new DefaultPosition(cal.getTime()));