@Test
public void shouldGetNextInstant() {

  final Instant nextTimeHours = parse("2016-01-19T10:00:00.00Z");
  final Instant nextTimeDays = parse("2016-01-20T00:00:00.00Z");
  final Instant nextTimeWeeks = parse("2016-01-25T00:00:00.00Z");
  final Instant nextTimeMonths = parse("2016-02-01T00:00:00.00Z");
  final Instant hour = nextInstant(TIME, Schedule.HOURS);
  assertThat(hour, is(nextTimeHours));
  final Instant day = nextInstant(TIME, Schedule.DAYS);
  assertThat(day, is(nextTimeDays));
  final Instant weeks = nextInstant(TIME, Schedule.WEEKS);
  assertThat(weeks, is(nextTimeWeeks));
  final Instant months = nextInstant(TIME, Schedule.MONTHS);
  assertThat(months, is(nextTimeMonths));
}