@Test
public void hashCodesOfEqualIntervalsAreEqual() {

    DiscreteInterval i1 = new DiscreteInterval(1,6);
    DiscreteInterval i2 = new DiscreteInterval(1,6);
    assertEquals(i1.hashCode(), i2.hashCode());
}