### Question:
HugeLongArrayStack { public long pop() { if (isEmpty()) { throw new IndexOutOfBoundsException("Stack is empty."); } return array.get(--size); } private  HugeLongArrayStack(HugeLongArray array); static HugeLongArrayStack newStack(long capacity, AllocationTracker tracker); void push(long v); long pop(); long size(); boolean isEmpty();  }### Answer:
@Test void testPop() { var q = HugeLongArrayStack.newStack(10, AllocationTracker.empty()); q.push(42); q.push(1337); assertEquals(1337, q.pop()); assertEquals(42, q.pop()); assertEquals(0, q.size()); }