@Test(expected = NoSuchElementException.class)
public void testIterator2() {

  Iterator<Integer> i = iterator(new Integer[] {1});
  assertTrue(i.hasNext());
  i.next();
  assertFalse(i.hasNext());
  i.next();
}