@Test
public void testSetEnableAuthentication() throws Exception {

	// No NPE
	this.register.setEnableAuthentication( true );
	this.register.setEnableAuthentication( false );
	// Act like if the component had been started
	this.register.authenticationFilter = Mockito.mock( AuthenticationFilter.class );
	this.register.setEnableAuthentication( true );
	Mockito.verify( this.register.authenticationFilter, Mockito.only()).setAuthenticationEnabled( true );
	// Stop...
	this.register.stopping();
	// No NPE
	this.register.setEnableAuthentication( false );
	Assert.assertFalse( this.register.isAuthenticationRequired());
	this.register.setEnableAuthentication( true );
	Assert.assertTrue( this.register.isAuthenticationRequired());
}