@Test
public void retrieveAuthenticator_test() {

    byte[] credentialId = new byte[0];
    WebAuthnAuthenticator expectedAuthenticator = mock(WebAuthnAuthenticator.class);
    //Given
    when(authenticatorService.loadAuthenticatorByCredentialId(credentialId)).thenReturn(expectedAuthenticator);
    //When
    WebAuthnAuthenticator webAuthnAuthenticator = authenticationProvider.retrieveAuthenticator(credentialId);
    //Then
    assertThat(webAuthnAuthenticator).isEqualTo(expectedAuthenticator);
}