@Test
public void testBrokerDestinationView() throws Exception {

     for (int i = 0; i < messageCount; i++){
         Message message = producerSession.createTextMessage("test " + i);
         producer.send(message);
     }
     MessageBrokerView messageBrokerView = MessageBrokerViewRegistry.getInstance().lookup("");
     BrokerDestinationView destinationView = messageBrokerView.getQueueDestinationView(getClass().getName());
     assertEquals(destinationView.getQueueSize(),messageCount);
}