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