@Test
public void testEquals() {

    assertTrue(a.equals(a));
    assertTrue(a.equals(new Interval<>(1, Range.closed(2, 4))));
    assertFalse(a.equals(b));
    assertFalse(a.equals(Interval.NULL));
    assertFalse(a.equals(Interval.MAGIC));
}