### Question:
InstantRange extends Range<Instant> { public static InstantRange after(final Instant after) { if (after == null) { throw new IllegalArgumentException("range after instant cannot be null"); } return new InstantRange(after.plusMillis(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 cannotBeAfterNull() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("range after instant cannot be null"); InstantRange.after(null); }