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