private CsrfToken createCsrfToken(final MockRequestContext context) {
        val csrfToken = csrfTokenRepository.generateToken(context.getHttpServletRequest());
        csrfTokenRepository.saveToken(csrfToken, context.getHttpServletRequest(), context.getHttpServletResponse());
        context.setRequestCookiesFromResponse();
        return csrfToken;
    }
This is {@link WebAuthnQRCodeControllerMvcTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-webauthn/src/test/java/org/apereo/cas/webauthn/web/WebAuthnQRCodeControllerMvcTests.java