@Test
public void setAuthenticated_with_false_test() {

    WebAuthnAuthenticationRequest request = mock(WebAuthnAuthenticationRequest.class);
    WebAuthnAuthenticationParameters parameters = mock(WebAuthnAuthenticationParameters.class);
    WebAuthnAssertionAuthenticationToken token = new WebAuthnAssertionAuthenticationToken(request, parameters, null);
    token.setAuthenticated(false);
    assertThat(token.isAuthenticated()).isFalse();
}