@Test
public void testBuildExchangeName() {

	MessagingContext ctx = new MessagingContext( RecipientKind.DM, "domain", "app1" );
	Assert.assertEquals( "domain." + EXCHANGE_DM, RabbitMqUtils.buildExchangeName( ctx ));
	ctx = new MessagingContext( RecipientKind.DM, "domain", "app2" );
	Assert.assertEquals( "domain." + EXCHANGE_DM, RabbitMqUtils.buildExchangeName( ctx ));
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "app1" );
	Assert.assertEquals( "domain." + EXCHANGE_INTER_APP, RabbitMqUtils.buildExchangeName( ctx ));
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.IMPORT, "app1" );
	Assert.assertEquals( "domain." + EXCHANGE_INTER_APP, RabbitMqUtils.buildExchangeName( ctx ));
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.IMPORT, "app1" );
	Assert.assertEquals( "domain.app1.agents", RabbitMqUtils.buildExchangeName( ctx ));
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain1", "facet", ThoseThat.EXPORT, "app2" );
	Assert.assertEquals( "domain1.app2.agents", RabbitMqUtils.buildExchangeName( ctx ));
}