@Test public void testLoadMultipleInstances() { MetricRegistries loader1 = mock(MetricRegistries.class); MetricRegistries loader2 = mock(MetricRegistries.class); MetricRegistries loader3 = mock(MetricRegistries.class); MetricRegistries instance = MetricRegistriesLoader.load(Lists.newArrayList(loader1, loader2, loader3)); assertEquals(loader1, instance); assertNotEquals(loader2, instance); assertNotEquals(loader3, instance); }
public static MetricRegistries load() { List<MetricRegistries> availableImplementations = getDefinedImplemantations(); return load(availableImplementations); }
MetricRegistriesLoader { public static MetricRegistries load() { List<MetricRegistries> availableImplementations = getDefinedImplemantations(); return load(availableImplementations); } }
MetricRegistriesLoader { public static MetricRegistries load() { List<MetricRegistries> availableImplementations = getDefinedImplemantations(); return load(availableImplementations); } private  MetricRegistriesLoader(); }
MetricRegistriesLoader { public static MetricRegistries load() { List<MetricRegistries> availableImplementations = getDefinedImplemantations(); return load(availableImplementations); } private  MetricRegistriesLoader(); static MetricRegistries load(); }
MetricRegistriesLoader { public static MetricRegistries load() { List<MetricRegistries> availableImplementations = getDefinedImplemantations(); return load(availableImplementations); } private  MetricRegistriesLoader(); static MetricRegistries load();  }