@Override
    public ServiceModel getServiceModelSnapshot() {
        try (LatencyMeasurement measurement = metrics.startServiceModelSnapshotLatencyMeasurement()) {
            return modelGenerator.toServiceModel(duperModelManager.getApplicationInfos(), serviceStatusProvider);
        }
    }
@Test
    public void sanityCheck() {
        SlobrokMonitorManagerImpl slobrokMonitorManager = mock(SlobrokMonitorManagerImpl.class);
        DuperModelManager duperModelManager = mock(DuperModelManager.class);
        ModelGenerator modelGenerator = mock(ModelGenerator.class);
        ServiceMonitorImpl serviceMonitor = new ServiceMonitorImpl(
                slobrokMonitorManager,
                mock(ServiceMonitorMetrics.class),
                duperModelManager,
                modelGenerator);

        ApplicationInfo application1 = mock(ApplicationInfo.class);
        ApplicationInfo application2 = mock(ApplicationInfo.class);
        List<ApplicationInfo> applications = Stream.of(application1, application2)
                .toList();
        when(duperModelManager.getApplicationInfos()).thenReturn(applications);

        ServiceModel serviceModel = serviceMonitor.getServiceModelSnapshot();
        verify(duperModelManager, times(1)).getApplicationInfos();
        verify(modelGenerator).toServiceModel(applications, slobrokMonitorManager);
    }