public Duration durationBetweenRecurringJobInstances() {
        Instant base = Instant.EPOCH.plusSeconds(3600);
        Schedule schedule = ScheduleExpressionType.getSchedule(scheduleExpression);
        Instant run1 = schedule.next(base, base, ZoneOffset.UTC);
        Instant run2 = schedule.next(base, run1, ZoneOffset.UTC);
        return between(run1, run2);
    }
@Test
    void testDurationBetweenRecurringJobInstancesForCronJob() {
        RecurringJob recurringJob1 = aDefaultRecurringJob().withCronExpression("* * * * * *").build();
        assertThat(recurringJob1.durationBetweenRecurringJobInstances()).isEqualTo(ofSeconds(1));

        RecurringJob recurringJob2 = aDefaultRecurringJob().withCronExpression("*/5 * * * * *").build();
        assertThat(recurringJob2.durationBetweenRecurringJobInstances()).isEqualTo(ofSeconds(5));
    }