TopologicalDomain implements ChromosomalRegion { @Override public int getEnd() { return end; } 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 testGetEnd() { instance = new TopologicalDomain(0, 0, 1, new HashMap<>()); assertThat(instance.getEnd(), equalTo(1)); }