@Test
public void includes() {

    RangeImpl rangeImpl = new RangeImpl(Range.RangeBoundary.OPEN, 10, 15, Range.RangeBoundary.OPEN);
    Assert.assertFalse(rangeImpl.includes(-15));
    Assert.assertFalse(rangeImpl.includes(5));
    Assert.assertFalse(rangeImpl.includes(10));
    Assert.assertTrue(rangeImpl.includes(12));
    Assert.assertFalse(rangeImpl.includes(15));
    Assert.assertFalse(rangeImpl.includes(156));
    rangeImpl = new RangeImpl(Range.RangeBoundary.CLOSED, 10, 15, Range.RangeBoundary.OPEN);
    Assert.assertTrue(rangeImpl.includes(10));
    Assert.assertTrue(rangeImpl.includes(12));
    Assert.assertFalse(rangeImpl.includes(15));
    rangeImpl = new RangeImpl(Range.RangeBoundary.OPEN, 10, 15, Range.RangeBoundary.CLOSED);
    Assert.assertFalse(rangeImpl.includes(10));
    Assert.assertTrue(rangeImpl.includes(12));
    Assert.assertTrue(rangeImpl.includes(15));
    rangeImpl = new RangeImpl(Range.RangeBoundary.CLOSED, 10, 15, Range.RangeBoundary.CLOSED);
    Assert.assertTrue(rangeImpl.includes(10));
    Assert.assertTrue(rangeImpl.includes(12));
    Assert.assertTrue(rangeImpl.includes(15));
}