GeneticInterval implements ChromosomalRegion { @Override public int getEnd() { return end; } GeneticInterval(int chromosome, int start, int end); static GeneticInterval parseString(String interval); @Override int getChromosome(); @Override int getStart(); @Override int getEnd(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetEnd() { assertThat(instance.getEnd(), equalTo(END)); }