Assert.assertEquals(Arrays.asList(1), Consumers.all(got));
}
@Test
public void canEvaluateIntersectBetweenThreeRanges() {
final Ranges<Integer> ranges = new Ranges<Integer>(new ComparableComparator<Integer>(), new NextIntegerSequencingPolicy(), 0);
final Range<Integer> first = ranges.closed(1, 2);
final Range<Integer> second = ranges.closed(0, 1);
final Range<Integer> third = ranges.closed(0, 4);
final Range<Integer> got = ranges.intersect(first, second, third);
Assert.assertEquals(Arrays.asList(1), Consumers.all(got));