BrokerDestinationView(Destination destination) {
        this.destination = destination;
    }
@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(queueName);
         assertEquals(destinationView.getQueueSize(),messageCount);

         final DestinationsViewFilter filter = new DestinationsViewFilter();
         filter.setName(queueName);
         filter.setFilter("nonEmpty");
         final ObjectMapper mapper = new ObjectMapper();

         final BrokerViewMBean brokerView = getBrokerView();
         String output = brokerView.queryQueues(mapper.writeValueAsString(filter), 1, 10);
         Map<?,?> queryResults = mapper.readValue(output, Map.class);

         final Integer count = (Integer) queryResults.get("count");
         final Map<?,?> data = (Map<?, ?>) queryResults.get("data");
         assertEquals((Integer)1, count);
         assertEquals(1, data.size());
    }