@Test
public void testCalculateDaysCustomWorkingDays() {

    Properties config = new Properties();
    config.setProperty(BusinessCalendarImpl.DAYS_PER_WEEK, "4");
    config.setProperty(BusinessCalendarImpl.WEEKEND_DAYS, Calendar.FRIDAY + ","+Calendar.SATURDAY + "," +Calendar.SUNDAY);
    String expectedDate = "2012-05-15 14:30";
    
    SessionPseudoClock clock = new StaticPseudoClock(parseToDateWithTime("2012-05-03 14:30").getTime());    
    BusinessCalendarImpl businessCal = new BusinessCalendarImpl(config, clock);
    
    Date result = businessCal.calculateBusinessTimeAsDate("6d");
    
    assertEquals(expectedDate, formatDate("yyyy-MM-dd HH:mm", result));
}