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