JMSUtil.createDurableSubscriber(connection, topic, clientID, subscriptionName);
JMSUtil.sendMessages(topic, 3);
TopicControl topicControl = createManagementControl();
Map<String, Object>[] messages = topicControl.listMessagesForSubscription(HornetQDestination.createQueueNameForDurableSubscription(clientID,
subscriptionName));
Assert.assertEquals(3, messages.length);
connection.close();
}