@Test
public void testToString() {

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