### Question:
PrimitiveLongArrayQueue implements PrimitiveLongCollection { public long dequeue() { if ( isEmpty() ) { throw new IllegalStateException( "Fail to poll first element. Queue is empty." ); } long value = values[head]; head = (head + 1) & (values.length - 1); return value; } PrimitiveLongArrayQueue();   PrimitiveLongArrayQueue( int capacity ); @Override void visitKeys( PrimitiveLongVisitor<E> visitor ); @Override boolean isEmpty(); @Override void clear(); @Override int size(); @Override void close(); @Override PrimitiveLongIterator iterator(); long dequeue(); void enqueue( long value ); void addAll( PrimitiveLongArrayQueue otherQueue );  }### Answer:
@Test void failToRemoveElementFromNewEmptyQueue() { assertThrows( IllegalStateException.class, () -> createQueue().dequeue() ); }