@Test
public void shouldGetExceptionIfLastInstantIsBeforeFirstInstant() {

  final Instant firstTimeHours = parse("2016-01-19T10:00:00.00Z");
  final Instant lastTimeHours = parse("2016-01-19T09:00:00.00Z");
  expect.expect(IllegalArgumentException.class);
  expect.expectMessage("last instant should not be before first instant");
  instantsInRange(firstTimeHours, lastTimeHours, Schedule.HOURS);
}