QueueRegistry qReg = _vHost.getQueueRegistry();
assertNull("The queue should not yet exist", qReg.getQueue(queueName));
ManagedBroker mbean = new AMQBrokerManagerMBean((VirtualHostImpl.VirtualHostMBean) _vHost.getManagedObject());
mbean.createNewQueue(queueName.asString(), "test", false, args);
AMQQueue queue = qReg.getQueue(queueName);
assertEquals("Queue is not a priorty queue", AMQPriorityQueue.class, queue.getClass());
assertEquals("Number of priorities supported was not as expected", numPriorities, ((AMQPriorityQueue)queue).getPriorities());
}