### Question:
BusinessDayChecker { public boolean isBusinessDay (Calendar date) { int day = date.get (Calendar.DAY_OF_WEEK); return day >= Calendar.MONDAY && day <= Calendar.FRIDAY; }  boolean isBusinessDay(Calendar date);  }### Answer:
@Test public void testIsBusinessDay () { BusinessDayChecker checker = new BusinessDayChecker (); Calendar date = GregorianCalendar.getInstance (); date.set (Calendar.DAY_OF_WEEK, Calendar.MONDAY); assertTrue (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.TUESDAY); assertTrue (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.WEDNESDAY); assertTrue (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.THURSDAY); assertTrue (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.FRIDAY); assertTrue (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.SATURDAY); assertFalse (checker.isBusinessDay (date)); date.set (Calendar.DAY_OF_WEEK, Calendar.SUNDAY); assertFalse (checker.isBusinessDay (date)); }