@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        MultifactorAuthenticationWebflowUtils.putMultifactorAuthenticationProvider(context, webAuthnMultifactorAuthenticationProvider);

        val authentication = RegisteredServiceTestUtils.getAuthentication(UUID.randomUUID().toString());
        WebUtils.putAuthentication(authentication, context);
        var result = webAuthnCheckAccountRegistrationAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_REGISTER, result.getId());

        webAuthnCredentialRepository.addRegistrationByUsername(
            authentication.getPrincipal().getId(), CredentialRegistration.builder().build());
        result = webAuthnCheckAccountRegistrationAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, result.getId());
    }
This is {@link WebAuthnAccountCheckRegistrationActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn/src/test/java/org/apereo/cas/webauthn/web/flow/WebAuthnAccountCheckRegistrationActionTests.java