session.createDurableSubscriber(topic, "testListNonDurableSubscriptions", "foo=bar", false);
session.createSubscriber(topic, "foo=bar", false);
final ModelNode result = execute(getTopicOperation("list-non-durable-subscriptions"), true);
Assert.assertTrue(result.isDefined());
Assert.assertEquals(1, result.asList().size());
}
@Test
public void testListNonDurableSubscriptionsAsJSON() throws Exception {
session.createDurableSubscriber(topic, "testListNonDurableSubscriptionsAsJSON", "foo=bar", false);