@Test
public void contains() {

	Range<Integer> range = Range.of(5, 10);
	assertThat((IntPredicate) range::contains)
			.accepts(5, 6, 7, 8, 9, 10)
			.rejects(Integer.MIN_VALUE, 4, 11, Integer.MAX_VALUE);
	assertThat((Predicate<Range<Integer>>) range::contains)
			.accepts(range, Range.of(5, 10), Range.exactly(7), Range.exactly(5), Range.exactly(10), Range.of(6, 9), Range.of(5, 9))
			.rejects(Range.atMost(5), Range.atMost(10), Range.all(), Range.exactly(4), Range.exactly(11), Range.atLeast(5), Range.atLeast(10), Range.of(7, 11), Range.of(11, 12), Range.of(3, 4));
}