@Test
public void get_set_userPrincipal_test() {

    UserDetails userDetails = mock(UserDetails.class);
    WebAuthnAuthenticatorImpl instance = new WebAuthnAuthenticatorImpl("authenticator", userDetails, null, null, 0);
    assertThat(instance.getUserPrincipal()).isEqualTo(userDetails);
}