final MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(QUEUE_NAME);
assertTrue(queueManager.getTotalMemoryUsedSize() == 0);
Object mutex = new Object();
queueManager.setValueLimit(TEST_INSTANCE_SIZE * 100);
for (int i = 0;i < 10;i++) {
queue.enqueue(new Receipt());
}
Receipt test = new Receipt();
test.setId("FIRST");
queue.enqueueFirst(test);
Object obj = queue.dequeue();
assertTrue(obj == test);
queue.close();
}