public int updateProgress(JobTriggerDto trigger, int progress) {
        final var filter = idEq(requireNonNull(trigger.id()));
        final var update = set(FIELD_PROGRESS, progress);
        return Ints.saturatedCast(collection.updateOne(filter, update).getModifiedCount());
    }
@Test
    @MongoDBFixtures("job-triggers.json")
    public void updateProgress() {
        final JobTriggerDto trigger = dbJobTriggerService.get("54e3deadbeefdeadbeef0003").orElseThrow(AssertionError::new);

        assertThat(trigger.lock().progress()).isEqualTo(0);

        assertThat(dbJobTriggerService.updateProgress(trigger, 42)).isEqualTo(1);

        final JobTriggerDto updatedTrigger = dbJobTriggerService.get("54e3deadbeefdeadbeef0003").orElseThrow(AssertionError::new);

        assertThat(updatedTrigger.lock().progress()).isEqualTo(42);
    }