public void testRemovePacket(){
int size = 100;
MemoryBoundedQueue queue = queueManager.getMemoryBoundedQueue(QUEUE_NAME);
List list = new ArrayList(size);
for (int i = 0;i < size;i++) {
Packet p = new Receipt();
p.setId(""+i);
list.add(p);
queue.enqueue(p);
}
for (int i =0; i < size; i++){
queue.remove((Packet)list.get(i));