@Test
public void offHeapFixedStackTest() {

    Stack stack = new OffHeapFixedStack(CAPACITY, true);
    test(stack);
    stack.free();
    if (OffHeapConstants.DEBUG_MODE) {
        Assert.assertEquals(OffHeapConstants.SEGMENTS.size(), 0);
    }
}