### Question:
LocalDateRange extends Range<LocalDate> { public static LocalDateRange inTheFuture() { final LocalDate today = current().date(); if (today.equals(MAXIMUM)) { throw new IllegalArgumentException("Date range cannot be in the future because today is the maximum date"); } return new LocalDateRange(today.plusDays(1), MAXIMUM); } private  LocalDateRange(final LocalDate lowerBound, final LocalDate upperBound); static LocalDateRange tomorrow(); static LocalDateRange all(); static LocalDateRange today(); static LocalDateRange inTheFuture(); static LocalDateRange inThePast(); static LocalDateRange after(final LocalDate date); static LocalDateRange before(final LocalDate date); static LocalDateRange aged(final Range<ChronoAmount> range);  }### Answer:
@Test public void inTheFutureIsIllegalWhenTodayIsMaximumLocalDate() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("Date range cannot be in the future because today is the maximum date"); Timekeeper.from(fixedClock(LocalDate.MAX)); inTheFuture(); }