TopologicalDomain implements ChromosomalRegion { public Map<String, Integer> getGenes() { return genes; } TopologicalDomain(int chromosome, int start, int end, Map<String, Integer> genes); @Override int getChromosome(); @Override int getStart(); @Override int getEnd(); Map<String, Integer> getGenes(); boolean containsPosition(VariantCoordinates variantCoordinates); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetGenes() { Map<String, Integer> genes = new HashMap<>(); genes.put("GENE1", 12345); genes.put("GENE2", 23456); instance = new TopologicalDomain(0, 0, 0, genes); assertThat(instance.getGenes(), equalTo(genes)); }