Assert.assertEquals(Arrays.asList(2), Consumers.all(range));
}
@Test
public void canCreateAClosedRange() {
final Ranges<Integer> ranges = new Ranges<Integer>(new ComparableComparator<Integer>(), new NextIntegerSequencingPolicy(), 0);
final Range<Integer> range = ranges.closed(1, 3);
Assert.assertEquals(Arrays.asList(1, 2, 3), Consumers.all(range));
}