// To Create a Priority queue we need to use AMQSession specific code
final Map<String, Object> arguments = new HashMap<String, Object>();
arguments.put("x-qpid-priorities", PRIORITIES);
// Need to create a queue that does not exist so use test name
final String queueName = getTestQueueName() + "-autoDeletePriority";
((AMQSession) _session).createQueue(new AMQShortString(queueName), true, _durable, false, arguments);
Queue queue = (Queue) _session.createQueue("direct://amq.direct/"+queueName+"/"+queueName+"?durable='"+_durable+"'&autodelete='true'");
//Need to create a Consumer to ensure that the log has had time to write