public void testOffset() {
Span span = new Span(_now, Calendar.SECOND, 1);
Span offsetSpan;
offsetSpan = new RepeaterWeekend().getOffset(span, 3, Pointer.PointerType.FUTURE);
assertEquals(Time.construct(2006, 9, 2), offsetSpan.getBeginCalendar());
assertEquals(Time.construct(2006, 9, 2, 0, 0, 1), offsetSpan.getEndCalendar());
offsetSpan = new RepeaterWeekend().getOffset(span, 1, Pointer.PointerType.PAST);
assertEquals(Time.construct(2006, 8, 12), offsetSpan.getBeginCalendar());
assertEquals(Time.construct(2006, 8, 12, 0, 0, 1), offsetSpan.getEndCalendar());
offsetSpan = new RepeaterWeekend().getOffset(span, 0, Pointer.PointerType.FUTURE);
assertEquals(Time.construct(2006, 8, 12), offsetSpan.getBeginCalendar());
assertEquals(Time.construct(2006, 8, 12, 0, 0, 1), offsetSpan.getEndCalendar());
}