HornetQServerControl serverControl = ManagementControlHelper.createHornetQServerControl(mbeanServer);
serverControl.enableMessageCounters();
serverControl.setMessageCounterSamplePeriod(counterPeriod);
String history = queueControl.listMessageCounterHistoryAsHTML();
Assert.assertNotNull(history);
session.deleteQueue(queue);
}