@Override
    public void addJobStorageOnChangeListener(StorageProviderChangeListener listener) {
        onChangeListeners.add(listener);
        startTimerToSendUpdates();
    }
@Test
    void ifMultipleJobChangeListenersForSameJobStillOneDatabaseCall() {
        final Job job = anEnqueuedJob().build();
        storageProvider.save(job);

        final JobChangeListenerForTest changeListener1 = new JobChangeListenerForTest(new JobId(job.getId()));
        final JobChangeListenerForTest changeListener2 = new JobChangeListenerForTest(new JobId(job.getId()));
        storageProvider.addJobStorageOnChangeListener(changeListener1);
        storageProvider.addJobStorageOnChangeListener(changeListener2);

        await().untilAsserted(() -> assertThat(changeListener1.job).isNotNull());
        await().untilAsserted(() -> assertThat(changeListener2.job).isNotNull());

        Mockito.verify(storageProvider, times(1)).getJobById(job.getId());
    }