Assert.assertEquals(Arrays.asList(0, 1, 2), Consumers.all(got));
}
@Test
public void canEvaluateUnionBetweenThreeRanges() {
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(3, 4);
final Range<Integer> got = ranges.union(first, second, third);
Assert.assertEquals(Arrays.asList(0, 1, 2, 3, 4), Consumers.all(got));