SlobrokMonitorManagerImpl implements SlobrokApi, MonitorManager { @Override public List<Mirror.Entry> lookup(ApplicationId id, String pattern) { synchronized (monitor) { SlobrokMonitor slobrokMonitor = slobrokMonitors.get(id); if (slobrokMonitor == null) { throw new IllegalArgumentException("Slobrok manager has no knowledge of application " + id); } else { return slobrokMonitor.lookup(pattern); } } } @Inject  SlobrokMonitorManagerImpl(DuperModelManager duperModel);   SlobrokMonitorManagerImpl(Supplier<SlobrokMonitor> slobrokMonitorFactory, DuperModelManager duperModel); @Override void applicationActivated(ApplicationInfo application); @Override void applicationRemoved(ApplicationId id); @Override void bootstrapComplete(); @Override List<Mirror.Entry> lookup(ApplicationId id, String pattern); @Override ServiceStatusInfo getStatus(ApplicationId applicationId,
                                       ClusterId clusterId,
                                       ServiceType serviceType,
                                       ConfigId configId);  }
@Test public void testLookup() { assertEquals( Optional.of("vespa/service/config.id"), findSlobrokServiceName("container", "config.id")); assertEquals( Optional.empty(), findSlobrokServiceName("logserver", "config.id")); }