public void testExchangeMBeanInfo() throws Exception
{
// If this test fails due to changes in the broker code,
// then the constants in the Constants.java shoule be updated accordingly
DestNameExchange exchange = new DestNameExchange();
exchange.initialise(_virtualHost, ExchangeDefaults.DIRECT_EXCHANGE_NAME, false, 0, true);
AMQManagedObject mbean = (AMQManagedObject)exchange.getManagedObject();
MBeanInfo mbeanInfo = mbean.getMBeanInfo();
// Check for the Exchange Type property in the ObjectName
assertNotNull(mbean.getObjectName().getKeyProperty(Constants.EXCHANGE_TYPE));