@Test
public void testEquals() {

	MessagingContext ctx = new MessagingContext( RecipientKind.DM, "domain", "whatever" );
	Assert.assertEquals( ctx, new MessagingContext( RecipientKind.DM, "domain", "whatever", null, "whatever" ));
	Assert.assertEquals( ctx, ctx );
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.DM, "domain", null )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.DM, "domain", "whatever2" )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.AGENTS, "domain", null )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.INTER_APP, "domain", null )));
	Assert.assertFalse( ctx.equals( new Object()));
	ctx = new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.EXPORT, "app" );
	Assert.assertEquals( ctx, new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.EXPORT, "app2" ));
	Assert.assertEquals( ctx, new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.EXPORT, "app3" ));
	Assert.assertEquals( ctx, ctx );
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.IMPORT, "app" )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.INTER_APP, "domain", "facet2", ThoseThat.EXPORT, "app" )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.EXPORT, "app" )));
	Assert.assertFalse( ctx.equals( new Object()));
	ctx = new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.EXPORT, null );
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.IMPORT, null )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.INTER_APP, "domain", "facet", ThoseThat.EXPORT, null )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.AGENTS, "domain", "facet2", ThoseThat.EXPORT, null )));
	Assert.assertFalse( ctx.equals( new MessagingContext( RecipientKind.AGENTS, "domain", "facet", ThoseThat.EXPORT, "app" )));
	Assert.assertEquals( ctx, ctx );
}