clientSession.createQueue("a1", "q1", false);
clientSession.createQueue("a1", "q2", false);
clientSession.createQueue("a2", "q3", false);
clientSession.createQueue("a2", "q4", false);
clientSession.createQueue("a2", "q5", false);
BindingQuery resp = clientSession.bindingQuery(new SimpleString("a"));
List<SimpleString> queues = resp.getQueueNames();
Assert.assertTrue(queues.isEmpty());
resp = clientSession.bindingQuery(new SimpleString("a1"));
queues = resp.getQueueNames();
Assert.assertEquals(queues.size(), 2);
Assert.assertTrue(queues.contains(new SimpleString("q1")));
Assert.assertTrue(queues.contains(new SimpleString("q2")));
resp = clientSession.bindingQuery(new SimpleString("a2"));
queues = resp.getQueueNames();
Assert.assertEquals(queues.size(), 3);
Assert.assertTrue(queues.contains(new SimpleString("q3")));
Assert.assertTrue(queues.contains(new SimpleString("q4")));
Assert.assertTrue(queues.contains(new SimpleString("q5")));
clientSession.close();