Connection connection = HornetQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.CF, config).createConnection();
connection.start();
Queue managementQueue = HornetQJMSClient.createQueue("hornetq.management");
QueueSession session = (QueueSession) connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
QueueRequestor requestor = new QueueRequestor(session, managementQueue);
Message message = session.createMessage();
JMSManagementHelper.putOperationInvocation(message, "jms.server", "createQueue", queueName, binding);
Message reply = requestor.request(message);
assertTrue(JMSManagementHelper.hasOperationSucceeded(reply));
connection.close();