### Question:
PrimitiveIntCollections { public static PrimitiveIntIterator iterator(final int... items) { return new PrimitiveIntBaseIterator() { private int index = -1; @Override protected boolean fetchNext() { return ++index < items.length && next(items[index]); } }; } private  PrimitiveIntCollections(); static PrimitiveIntIterator iterator(final int... items); static PrimitiveIntIterator concat(Iterator<PrimitiveIntIterator> iterators); static PrimitiveIntIterator filter(PrimitiveIntIterator source, final IntPredicate filter); static long[] asLongArray(PrimitiveIntCollection values); static PrimitiveIntIterator emptyIterator(); static PrimitiveIntIterator toPrimitiveIterator(final Iterator<Integer> iterator); static Iterator<T> map(final IntFunction<T> mapFunction, final PrimitiveIntIterator source); static void consume(PrimitiveIntIterator source, IntConsumer consumer); static boolean contains(int[] values, int candidate); static List<Integer> toList(PrimitiveIntIterator iterator); static Set<Integer> toSet(PrimitiveIntIterator iterator); static Set<T> mapToSet(PrimitiveIntIterator iterator, IntFunction<T> map); static int[] deduplicate(int[] values);  }### Answer:
@Test void arrayOfItemsAsIterator() { int[] items = new int[]{2, 5, 234}; PrimitiveIntIterator iterator = PrimitiveIntCollections.iterator(items); assertItems(iterator, items); }