Week extends RangeUnit { @NonNull public List<Day> getDays() { return mDays; } Week(@NonNull LocalDate date, @NonNull LocalDate today, @Nullable LocalDate minDate,
                @Nullable LocalDate maxDate); @Override boolean hasNext(); @Override boolean hasPrev(); @Override boolean next(); @Override boolean prev(); @Override int getType(); @Override void deselect(@NonNull LocalDate date); @Override boolean select(@NonNull LocalDate date); @NonNull List<Day> getDays(); @Override void build();  }
@Test public void testGetDays() throws Exception { List<Day> days = mWeek.getDays(); assertEquals(7, days.size()); LocalDate first = LocalDate.parse("2014-07-28"); for (int i = 0; i < days.size(); i++) { Day day = days.get(i); assertEquals(first.plusDays(i), day.getDate()); if (i == 4) { assertTrue(day.isToday()); } else { assertFalse(day.isToday()); } assertTrue(day.isEnabled()); } }