@Test
public void testGetTopicName() {

	// DM
	MessagingContext ctx = new MessagingContext( RecipientKind.DM, "domain", null );
	Assert.assertEquals( "", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.DM, "domain", "whatever" );
	Assert.assertEquals( "whatever", ctx.getTopicName());
	// Inter-application
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "whatever" );
	Assert.assertEquals( "", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", null );
	Assert.assertEquals( "", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", null, "whatever" );
	Assert.assertEquals( "facet", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.EXPORT, "whatever" );
	Assert.assertEquals( "those.that.export.facet", ctx.getTopicName());
	// Agents
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", "whatever" );
	Assert.assertEquals( "", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", null );
	Assert.assertEquals( "", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", "facet", null, "whatever" );
	Assert.assertEquals( "facet", ctx.getTopicName());
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.IMPORT, "whatever" );
	Assert.assertEquals( "those.that.import.facet", ctx.getTopicName());
}