Assert.assertEquals(Consumers.all(expected), Consumers.all(iterator));
}
@Test
public void canMakeAnIterableCountedWithRange() {
final Range<Integer> range = new DenseRange<Integer>(new NextIntegerSequencingPolicy(), new JustBeforeNothingComparator<Integer>(new ComparableComparator<Integer>()), Endpoint.Include, 1, Maybe.just(10), Endpoint.Include);
final Iterable<String> bucket = Iterations.iterable("a", "b");
final Iterator<Pair<Integer, String>> iterator = Zips.counted(bucket, range);
final Iterator<Pair<Integer, String>> expected = Iterations.iterator(Pair.of(1, "a"), Pair.of(2, "b"));
Assert.assertEquals(Consumers.all(expected), Consumers.all(iterator));
}