void () { final Iterator<Integer> iterator = compose(Arrays.asList(iter(arr1), iter(arr2), iter(arr3))); int cnt = 0; while (iterator.hasNext()) { iterator.next(); ++cnt; } assertEquals(arr1.length + arr2.length + arr3.length, cnt); }