public List<JobTriggerDto> getAllForJob(String jobDefinitionId) {
        if (isNullOrEmpty(jobDefinitionId)) {
            throw new IllegalArgumentException("jobDefinitionId cannot be null or empty");
        }

        return stream(collection.find(eq(FIELD_JOB_DEFINITION_ID, jobDefinitionId))).toList();
    }
@Test
    @MongoDBFixtures("job-triggers.json")
    public void getAllForJob() {

        // We expect a ISE when there is more than one trigger for a single job definition
        assertThatCode(() -> dbJobTriggerService.getOneForJob("54e3deadbeefdeadbeefaff3"))
                .isInstanceOf(IllegalStateException.class)
                .hasMessageContaining("54e3deadbeefdeadbeefaff3");

        // But we can also obtain all by calling following method:
        assertThat(dbJobTriggerService.getAllForJob("54e3deadbeefdeadbeefaff3"))
                .hasSize(2)
                .allSatisfy(trigger -> assertThat(trigger.jobDefinitionId()).isEqualTo("54e3deadbeefdeadbeefaff3"));
    }