@Test
public void shouldGetCorrectInstantsForCron() {

  final Instant firstTimeHours = parse("2016-01-19T00:00:00.00Z");
  final Instant lastTimeHours = parse("2016-01-19T03:00:00.00Z");
  assertThat(instantsInRange(firstTimeHours, lastTimeHours, Schedule.parse("0 * * * *")),
      contains(parse("2016-01-19T00:00:00.00Z"),
          parse("2016-01-19T01:00:00.00Z"),
          parse("2016-01-19T02:00:00.00Z")));
}