### Question:
ContinuableArrayCursor implements Cursor<T> { @Override public boolean next() { while ( current == null || cursor >= current.length ) { current = supplier.get(); if ( current == null ) { return false; } cursor = 0; } cursor++; return true; } ContinuableArrayCursor( Supplier<T[]> supplier ); @Override boolean next(); @Override void close(); @Override T get();  }### Answer:
@Test public void shouldNotReturnAnyElementOnEmptySupplier() { ContinuableArrayCursor cursor = new ContinuableArrayCursor<>( () -> null ); assertFalse( cursor.next() ); }
@Test public void shouldNotReturnAnyElementOnSupplierWithOneEmptyArray() { ContinuableArrayCursor cursor = new ContinuableArrayCursor( supply( new Integer[0] ) ); assertFalse( cursor.next() ); }