@Test
public void shouldGetExceptionIfFirstInstantIsNotAlignedWithSchedule() {

  final Instant firstTimeHours = parse("2016-01-19T08:10:00.00Z");
  final Instant lastTimeHours = parse("2016-01-19T09:00:00.00Z");
  expect.expect(IllegalArgumentException.class);
  expect.expectMessage("unaligned instant");
  instantsInRange(firstTimeHours, lastTimeHours, Schedule.HOURS);
}