@Test
public void testIdentity() {

	Map<String,String> targetProperties = new HashMap<>();
	targetProperties.put( TENANT_NAME, "tenant" );
	targetProperties.put( USER, "me" );
	Assert.assertEquals( "tenant:me", identity( targetProperties ));
	targetProperties.remove( USER );
	Assert.assertEquals( "tenant:null", identity( targetProperties ));
	targetProperties.remove( TENANT_NAME );
	Assert.assertEquals( "null:null", identity( targetProperties ));
	targetProperties.put( USER, "me" );
	Assert.assertEquals( "null:me", identity( targetProperties ));
}