@Test
public void testCleanPath() {

	Assert.assertEquals( "", AuthenticationFilter.cleanPath( "" ));
	Assert.assertEquals( REST_CONTEXT, AuthenticationFilter.cleanPath( REST_CONTEXT ));
	Assert.assertEquals( "/", AuthenticationFilter.cleanPath( REST_CONTEXT + "/" ));
	Assert.assertEquals( REST_CONTEXT, AuthenticationFilter.cleanPath( REST_CONTEXT + REST_CONTEXT ));
	Assert.assertEquals( "/test", AuthenticationFilter.cleanPath( REST_CONTEXT + "/test" ));
	Assert.assertEquals( WEBSOCKET_CONTEXT, AuthenticationFilter.cleanPath( WEBSOCKET_CONTEXT ));
	Assert.assertEquals( "/", AuthenticationFilter.cleanPath( WEBSOCKET_CONTEXT + "/" ));
	Assert.assertEquals( "/ty", AuthenticationFilter.cleanPath( WEBSOCKET_CONTEXT + "/ty" ));
	Assert.assertEquals( WEBSOCKET_CONTEXT + "ty", AuthenticationFilter.cleanPath( WEBSOCKET_CONTEXT + "ty" ));
	Assert.assertEquals( "/test", AuthenticationFilter.cleanPath( REST_CONTEXT + "/test?p=toto/22" ));
}