GenomeAnalysisServiceProvider { public Set<GenomeAssembly> getProvidedAssemblies() { Set<GenomeAssembly> providedAssemblies = new HashSet<>(genomeAnalysisServices.keySet()); return Sets.immutableEnumSet(providedAssemblies); } GenomeAnalysisServiceProvider(GenomeAnalysisService... genomeAnalysisServices); Set<GenomeAssembly> getProvidedAssemblies(); GenomeAnalysisService get(GenomeAssembly genomeAssembly); GenomeAnalysisService getOrDefault(GenomeAssembly genomeAssembly, GenomeAnalysisService defaultAnalysisService); boolean hasServiceFor(GenomeAssembly genomeAssembly); @Override String toString();  }
@Test public void testGetProvidedAssemblies() { GenomeAnalysisServiceProvider instance = new GenomeAnalysisServiceProvider(HG19_SERVICE, HG38_SERVICE); assertThat(instance.getProvidedAssemblies(), equalTo(Sets.immutableEnumSet(GenomeAssembly.HG19, GenomeAssembly.HG38))); }