### Question:
HugeLongArrayStack { public static HugeLongArrayStack newStack(long capacity, AllocationTracker tracker) { return new HugeLongArrayStack(HugeLongArray.newArray(capacity, tracker)); } private  HugeLongArrayStack(HugeLongArray array); static HugeLongArrayStack newStack(long capacity, AllocationTracker tracker); void push(long v); long pop(); long size(); boolean isEmpty();  }### Answer:
@Test void throwWhenEmpty() { var q = HugeLongArrayStack.newStack(10, AllocationTracker.empty()); var ex = assertThrows(IndexOutOfBoundsException.class, q::pop); assertEquals("Stack is empty.", rootCause(ex).getMessage()); }