@Test
public void testSetAuthenticationRealm() throws Exception {

	// No NPE
	Assert.assertNull( this.register.authenticationMngr );
	this.register.setAuthenticationRealm( "realm" );
	Assert.assertNotNull( this.register.authenticationMngr );
	// Act like if the component had been started
	this.register.authenticationFilter = Mockito.mock( AuthenticationFilter.class );
	this.register.setAuthenticationRealm( "realm2" );
	Mockito.verify( this.register.authenticationFilter, Mockito.only()).setAuthenticationManager( Mockito.any( AuthenticationManager.class ));
	// Stop...
	this.register.stopping();
	// No NPE
	this.register.setAuthenticationRealm( "realm" );
}