@Override
    public void applicationActivated(ApplicationInfo application) {
        if (wouldNotMonitor(application.getApplicationId())) {
            return;
        }

        synchronized (monitor) {
            SlobrokMonitor slobrokMonitor = slobrokMonitors.computeIfAbsent(
                    application.getApplicationId(),
                    id -> slobrokMonitorFactory.get());
            slobrokMonitor.updateSlobrokList(application);
        }
    }
@Test
    public void testActivationOfApplication() {
        slobrokMonitorManager.applicationActivated(application);
        verify(slobrokMonitorFactory, times(1)).get();
    }