@Test
public void equals() {

    RangeImpl rangeImpl = new RangeImpl(Range.RangeBoundary.OPEN, 10, 15, Range.RangeBoundary.OPEN);
    Assert.assertEquals(rangeImpl, rangeImpl);
    RangeImpl rangeImpl2 = new RangeImpl(Range.RangeBoundary.OPEN, 10, 15, Range.RangeBoundary.OPEN);
    Assert.assertEquals(rangeImpl, rangeImpl2);
    rangeImpl2 = new RangeImpl(Range.RangeBoundary.OPEN, 10, 15, Range.RangeBoundary.CLOSED);
    Assert.assertNotEquals(rangeImpl, rangeImpl2);
    rangeImpl2 = new RangeImpl(Range.RangeBoundary.CLOSED, 10, 15, Range.RangeBoundary.OPEN);
    Assert.assertNotEquals(rangeImpl, rangeImpl2);
    rangeImpl2 = new RangeImpl(Range.RangeBoundary.CLOSED, 10, 15, Range.RangeBoundary.CLOSED);
    Assert.assertNotEquals(rangeImpl, rangeImpl2);
    rangeImpl2 = new RangeImpl(Range.RangeBoundary.CLOSED, 12, 15, Range.RangeBoundary.CLOSED);
    Assert.assertNotEquals(rangeImpl, rangeImpl2);
    rangeImpl2 = new RangeImpl(Range.RangeBoundary.CLOSED, 12, 17, Range.RangeBoundary.CLOSED);
    Assert.assertNotEquals(rangeImpl, rangeImpl2);
    rangeImpl = new RangeImpl();
    Assert.assertEquals(rangeImpl, rangeImpl);
}