public boolean isEmpty() {
        if (isTailFirstUsage(currentTailPtr)) {
            return currentHeadPtr.compareTo(currentTailPtr) == 0;
        } else {
            return currentHeadPtr.moveForward(1).compareTo(currentTailPtr) == 0;
        }
    }
@Test
    public void newlyQueueIsEmpty() throws QueueException {
        final QueuePool queuePool = QueuePool.loadQueues(tempQueueFolder, PAGE_SIZE, SEGMENT_SIZE);
        final Queue queue = queuePool.getOrCreate("test");

        assertTrue(queue.isEmpty(), "Freshly created queue must be empty");
    }