public void testGeneralProperties() throws Exception
{
DirectExchange exchange = new DirectExchange();
exchange.initialise(_virtualHost, ExchangeDefaults.DIRECT_EXCHANGE_NAME, false, 0, true);
ManagedObject managedObj = exchange.getManagedObject();
ManagedExchange mbean = (ManagedExchange)managedObj;
// test general exchange properties
assertEquals("Unexpected exchange name", "amq.direct", mbean.getName());
assertEquals("Unexpected exchange type", "direct", mbean.getExchangeType());
assertEquals("Unexpected ticket number", Integer.valueOf(0), mbean.getTicketNo());
assertFalse("Unexpected durable flag", mbean.isDurable());
assertTrue("Unexpected auto delete flag", mbean.isAutoDelete());
}