@Test
public void testDeclareApplicationExchanges() throws Exception {

	Channel channel = Mockito.mock( Channel.class );
	RabbitMqUtils.declareApplicationExchanges( null, null, channel );
	Mockito.verifyZeroInteractions( channel );
	RabbitMqUtils.declareApplicationExchanges( "domain", "te", channel );
	String exchangeName = RabbitMqUtils.buildExchangeNameForAgent( "domain", "te" );
	Mockito.verify( channel, Mockito.times( 1 )).exchangeDeclare( exchangeName, "topic" );
}