### Question:
InstantRange extends Range<Instant> { public static InstantRange inTheFuture() { final Instant now = current().instant(); if (now.equals(Instant.MAX)) { throw new IllegalArgumentException("range cannot be in the future because today is the max instant"); } return new InstantRange(now.plusSeconds(1), Instant.MAX); } private  InstantRange(final Instant lowerBound, final Instant upperBound); static InstantRange all(); static InstantRange now(); static InstantRange today(); static InstantRange atDate(final LocalDate date); static InstantRange after(final Instant after); static InstantRange before(final Instant before); static InstantRange inTheFuture(); static InstantRange inThePast();  }### Answer:
@Test public void cannotBeInTheFutureWhenTodayIsMax() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("range cannot be in the future because today is the max instant"); Timekeeper.from(Clock.fixed(Instant.MAX, ZoneId.systemDefault())); InstantRange.inTheFuture(); }