public Job toScheduledJob() {
        return toJob(new ScheduledState(getNextRun(), this));
    }
@Test
    void testToScheduledJob() {
        final RecurringJob recurringJob = aDefaultRecurringJob()
                .withId("the-recurring-job")
                .withName("the recurring job")
                .build();

        final Job job = recurringJob.toScheduledJob();

        assertThat(job)
                .hasRecurringJobId("the-recurring-job")
                .hasJobName("the recurring job")
                .hasState(SCHEDULED);
    }