public void initialize(StorageProvider storageProvider, BackgroundJobServer backgroundJobServer) {
        storageProviderMetricsBinder = new StorageProviderMetricsBinder(storageProvider, meterRegistry);
        if (backgroundJobServer != null) {
            backgroundJobServerMetricsBinder = new BackgroundJobServerMetricsBinder(backgroundJobServer, meterRegistry);
        }
    }
@Test
    void testWithStorageProviderOnly() {
        // GIVEN
        JobRunrMicroMeterIntegration jobRunrMicroMeterIntegration = new JobRunrMicroMeterIntegration(meterRegistry);
        when(storageProvider.getJobStats()).thenReturn(JobStats.empty());

        // WHEN
        jobRunrMicroMeterIntegration.initialize(storageProvider, null);

        // THEN
        verify(storageProvider).getJobStats();
        verify(storageProvider).addJobStorageOnChangeListener(any(StorageProviderMetricsBinder.class));
        verify(meterRegistry, times(9)).gauge(any(String.class), any(Iterable.class), any(AtomicLong.class));

        // WHEN
        assertThatCode(jobRunrMicroMeterIntegration::close).doesNotThrowAnyException();
    }