control.createTopic(topicName, topicJNDIBinding);
checkResource(ObjectNameBuilder.DEFAULT.getJMSTopicObjectName(topicName));
Topic topic = (Topic)context.lookup(topicJNDIBinding);
assertNotNull(topic);
HornetQConnectionFactory cf = new HornetQConnectionFactory(false,
new TransportConfiguration(InVMConnectorFactory.class.getName()));
Connection connection = cf.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
// create a consumer will create a Core queue bound to the topic address
MessageConsumer cons = session.createConsumer(topic);
JSONArray jsonArray = new JSONArray(control.listAllConsumersAsJSON());