*/
public class DurationBusinessCalendarTest extends PvmTestCase {
public void testSimpleDuration() throws Exception {
Clock testingClock = new DefaultClockImpl();
DurationBusinessCalendar businessCalendar = new DurationBusinessCalendar(testingClock);
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy MM dd - HH:mm");
Date now = simpleDateFormat.parse("2010 06 11 - 17:23");
testingClock.setCurrentTime(now);
Date duedate = businessCalendar.resolveDuedate("P2DT5H70M");
Date expectedDuedate = simpleDateFormat.parse("2010 06 13 - 23:33");
assertEquals(expectedDuedate, duedate);
}