public void testAMQQueueMBeanInfo() throws Exception
{
// If this test fails due to changes in the broker code,
// then the constants in the Constants.java shoule be updated accordingly
AMQQueue queue = new AMQQueue(new AMQShortString("testQueueForManagement"), false, null, false, _virtualHost);
AMQManagedObject mbean = new AMQQueueMBean(queue);
MBeanInfo mbeanInfo = mbean.getMBeanInfo();
List<String> operationNames = getNamesList(mbeanInfo.getOperations());
assertTrue(operationNames.contains(Constants.OPERATION_MOVE_MESSAGES));
List<String> attributesList = getNamesList(mbeanInfo.getAttributes());