### Question:
PagedLongStack extends PagedDataStructure<long[]> { public void clear() { size = 0L; pageTop = -1; pageIndex = 0; currentPage = pages[0]; pageLimit = currentPage.length; } PagedLongStack(long initialSize, AllocationTracker tracker); private  PagedLongStack(long initialSize, PageAllocator<long[]> allocator); void clear(); void push(long value); long pop(); long peek(); boolean isEmpty(); @Override long size(); @Override long release();  }### Answer:
@Test void shouldClearToAnEmptyStack() { PagedLongStack stack = new PagedLongStack(between(0L, 10L).Long(), AllocationTracker.empty()); IntStream.range(0, between(13, 37).integer()) .mapToLong(i -> between(42L, 1337L).Long()) .forEach(stack::push); stack.clear(); assertEmpty(stack); }