GenomeDataServiceImpl implements GenomeDataService { @Override public Set<GeneIdentifier> getKnownGeneIdentifiers() { return geneFactory.getGeneIdentifiers(); } GenomeDataServiceImpl(GeneFactory geneFactory, RegulatoryFeatureDao regulatoryFeatureDao, TadDao tadDao); @Override List<Gene> getKnownGenes(); @Override Set<GeneIdentifier> getKnownGeneIdentifiers(); @Override List<RegulatoryFeature> getRegulatoryFeatures(); @Override List<TopologicalDomain> getTopologicallyAssociatedDomains();  }
@Test public void getKnownGeneIdentifiers() throws Exception { Set<GeneIdentifier> geneIdentifiers = ImmutableSet.copyOf(TestGeneFactory.buildGeneIdentifiers()); Mockito.when(geneFactory.getGeneIdentifiers()).thenReturn(geneIdentifiers); assertThat(instance.getKnownGeneIdentifiers(), equalTo(geneIdentifiers)); }