LookoutServerRegistryFactory implements
                                         MetricsRegistryFactory<LookoutRegistry, LookoutConfig> { public LookoutServerRegistryFactory(List<MetricObserver<LookoutMeasurement>> metricObservers) { this.metricObservers = metricObservers; } LookoutServerRegistryFactory(List<MetricObserver<LookoutMeasurement>> metricObservers);  LookoutServerRegistryFactory(List<MetricObserver<LookoutMeasurement>> metricObservers,
                                        AddressService addressService); @Override synchronized LookoutRegistry get(LookoutConfig metricConfig);  }
@Test public void testLookoutServerRegistryFactory() { MetricObserver<LookoutMeasurement> logObserver = new LogObserver(); LookoutServerRegistryFactory factory = new LookoutServerRegistryFactory( Lists.newArrayList(logObserver)); LookoutConfig config = new LookoutConfig(); LookoutRegistry r = factory.get(config); Assert.assertEquals(2, r.getMetricObservers().size()); }