private void setupMocks() throws Exception
{
_principalDatabase = mock(PrincipalDatabase.class);
AuthenticationProviderInitialiser _mockMechInitialiser = mock(AuthenticationProviderInitialiser.class);
Map<String, AuthenticationProviderInitialiser> _initialisers = Collections.singletonMap(MOCK_MECH_NAME, _mockMechInitialiser);
when(_principalDatabase.getMechanisms()).thenReturn(_initialisers);
_manager = new PrincipalDatabaseAuthenticationManager(_principalDatabase);