public void notify(DashboardNotification e) {
        notificationMappers.stream()
                .filter(notificationMapper -> notificationMapper.supports(e))
                .map(notificationMapper -> notificationMapper.map(e))
                .forEach(this::saveDashboardNotificationAsMetadata);
    }
@Test
    void notifyForCpuAllocationIrregularityShouldSaveJobRunrMetadataToStorageProvider() {
        dashboardNotificationManager.notify(new CpuAllocationIrregularityNotification(11));

        verify(storageProviderMock).saveMetadata(jobRunrMetadataToSaveArgumentCaptor.capture());

        assertThat(jobRunrMetadataToSaveArgumentCaptor.getValue())
                .hasName(CpuAllocationIrregularityNotification.class.getSimpleName())
                .hasOwner("BackgroundJobServer " + backgroundJobServerId.toString())
                .valueContains("11");
    }