@Test
public void setApplicationContextRegistersAllScheduledJobBeansWithAutoRegistration() {

    // given
    var jobId = "JOB-MOCK";
    var nonAutoRegisteredJob = new NonAutoRegisteredJob();
    var jobMap =  Map.of(
            "bean1", nonAutoRegisteredJob,
            "bean2", jobMock
    );
    given(jobMock.getJobIdentifier()).willReturn(jobId);
    given(applicationContextMock.getBeansOfType(ScheduledJob.class)).willReturn(jobMap);
    // when
    scheduledJobExecutor.setApplicationContext(applicationContextMock);
    // then
    assertThat(scheduledJobExecutor.scheduledJobIdMap).containsExactly(Map.entry(jobMock, jobId));
}