### Question:
ContinuableArrayCursor implements Cursor<T> { @Override public T get() { if ( current == null ) { throw new IllegalStateException(); } return current[cursor - 1]; } ContinuableArrayCursor( Supplier<T[]> supplier ); @Override boolean next(); @Override void close(); @Override T get();  }### Answer:
@Test public void callGetBeforeNextShouldThrowIllegalStateException() { ContinuableArrayCursor<?> cursor = new ContinuableArrayCursor( supply( new Integer[0] ) ); thrown.expect( IllegalStateException.class ); cursor.get(); }