void () { JBIterable<Integer> orig = JBIterable.generate(1, INCREMENT).take(5); JBIterator<JBIterator<Integer>> it = JBIterator.from(JBIterator.cursor( JBIterator.from(orig.iterator())).iterator()); List<Integer> list = new ArrayList<>(); while (it.advance()) { it.hasNext(); list.add(it.current().current()); } assertEquals(orig.toList(), list); }