### Question:
HugeLongArrayQueue { public static HugeLongArrayQueue newQueue(long capacity, AllocationTracker tracker) { return new HugeLongArrayQueue(HugeLongArray.newArray(capacity + 1, tracker)); } private  HugeLongArrayQueue(HugeLongArray array); static HugeLongArrayQueue newQueue(long capacity, AllocationTracker tracker); void add(long v); long remove(); long size(); boolean isEmpty();  }### Answer:
@Test void throwWhenEmpty() { var q = HugeLongArrayQueue.newQueue(10, AllocationTracker.empty()); var ex = assertThrows(IndexOutOfBoundsException.class, q::remove); assertEquals("Queue is empty.", rootCause(ex).getMessage()); }