### Question:
HugeLongArrayQueue { public long remove() { if (isEmpty()) { throw new IndexOutOfBoundsException("Queue is empty."); } long removed = array.get(head); head = (head + 1) % capacity; return removed; } private  HugeLongArrayQueue(HugeLongArray array); static HugeLongArrayQueue newQueue(long capacity, AllocationTracker tracker); void add(long v); long remove(); long size(); boolean isEmpty();  }### Answer:
@Test void testRemove() { var q = HugeLongArrayQueue.newQueue(10, AllocationTracker.empty()); q.add(42); q.add(1337); assertEquals(42, q.remove()); assertEquals(1337, q.remove()); assertEquals(0, q.size()); }