@Test
public void testAuthenticationDisabled() {

  expect(mockAuthPropsConfig.isAuthSimpleEnabled()).andReturn(false);
  
  replay(mockAuthPropsConfig);
  
  Authentication authentication = new TestingAuthenticationToken("principal", "credentials");
  assertSame(provider.authenticate(authentication), authentication);
  
  verify(mockAuthPropsConfig);
}