@Override
    public void addJobStorageOnChangeListener(StorageProviderChangeListener listener) {
        onChangeListeners.add(listener);
        startTimerToSendUpdates();
    }
@Test
    void jobStatsChangeListenersAreNotifiedOfJobStats() {
        final JobStatsChangeListenerForTest changeListener = new JobStatsChangeListenerForTest();
        storageProvider.addJobStorageOnChangeListener(changeListener);
        await()
                .untilAsserted(() -> assertThat(changeListener.jobStats).isNotNull());
    }