@Test
public void registerScheduledJobRegistersJobWhenJobHasUniqueId() {

    // given
    var existingJobId = "JOB";
    var otherJobId = "OTHER-JOB";
    scheduledJobExecutor.scheduledJobIdMap.put(jobMock, existingJobId);
    given(otherJobMock.getJobIdentifier()).willReturn(otherJobId);
    // when
    scheduledJobExecutor.registerScheduledJob(otherJobMock);
    // then
    assertThat(scheduledJobExecutor.scheduledJobIdMap)
            .containsOnly(Map.entry(jobMock, existingJobId), Map.entry(otherJobMock, otherJobId));
}