@Test(expected = BadCredentialsException.class)
public void retrieveWebAuthnUserDetails_test_with_CredentialIdNotFoundException() {

    byte[] credentialId = new byte[0];
    //Given
    when(authenticatorService.loadAuthenticatorByCredentialId(credentialId)).thenThrow(CredentialIdNotFoundException.class);
    //When
    authenticationProvider.retrieveAuthenticator(credentialId);
}