GenomeDataServiceImpl implements GenomeDataService { @Override public List<RegulatoryFeature> getRegulatoryFeatures() { return regulatoryFeatureDao.getRegulatoryFeatures(); } 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 serviceReturnsRegulatoryFeatures() { List<RegulatoryFeature> regulatoryFeatures = ImmutableList.of(new RegulatoryFeature(1, 10, 100, RegulatoryFeature.FeatureType.ENHANCER)); Mockito.when(mockRegulatoryFeatureDao.getRegulatoryFeatures()).thenReturn(regulatoryFeatures); List<RegulatoryFeature> result = instance.getRegulatoryFeatures(); assertThat(result, equalTo(regulatoryFeatures)); }