@Test
public void testCalculateDaysPassingOverHolidayAtYearEnd() {

    Properties config = new Properties();
    config.setProperty(BusinessCalendarImpl.HOLIDAYS, "2012-12-31:2013-01-01");
    String expectedDate = "2013-01-04 09:15";
    
    SessionPseudoClock clock = new StaticPseudoClock(parseToDateWithTime("2012-12-28 16:45").getTime());        
    BusinessCalendarImpl businessCal = new BusinessCalendarImpl(config, clock);
    
    Date result = businessCal.calculateBusinessTimeAsDate("2d30m");
    
    assertEquals(expectedDate, formatDate("yyyy-MM-dd HH:mm", result));
}