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

  LongPrimitiveIterator it = new LongPrimitiveArrayIterator(new long[] {3,2,1});
  assertTrue(it.hasNext());
  assertEquals(3, (long) it.next());
  assertTrue(it.hasNext());
  assertEquals(2, it.nextLong());
  assertTrue(it.hasNext());
  assertEquals(1, (long) it.next());    
  assertFalse(it.hasNext());
  it.nextLong();
}