public void updateLockedJobs() {
        if (workerPool.anySlotsUsed()) {
            jobTriggerService.updateLockedJobTriggers();
        }
    }
@Test
    void updateLockedJobsOnlyIfSomeJobWorkersRun() {
        JobExecutionEngine underTest = new JobExecutionEngine(jobTriggerService, jobDefinitionService, eventBus, scheduleStrategies, jobTriggerUpdatesFactory,
                refreshingLockServiceFactory, jobFactory, workerPool, jobSchedulerConfig, metricRegistry);

        underTest.updateLockedJobs();
        given(workerPool.anySlotsUsed()).willReturn(true);
        underTest.updateLockedJobs();

        verify(jobTriggerService, times(1)).updateLockedJobTriggers();
    }