### Question:
InstantRange extends Range<Instant> { public static InstantRange atDate(final LocalDate date) { if (date == null) { throw new IllegalArgumentException("range at date cannot be null"); } final Instant startOfDay = date.atTime(0, 0, 0, 0).toInstant(UTC); final Instant endOfDay = date.atTime(23, 59, 59, 0).toInstant(UTC); return new InstantRange(startOfDay, endOfDay); } 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 atDateCannotBeNull() { thrown.expect(IllegalArgumentException.class); thrown.expectMessage("range at date cannot be null"); InstantRange.atDate(null); }