private static CsrfToken getCsrfToken(final HttpServletRequest request) {
        val attribute = request.getAttribute(DeferredCsrfToken.class.getName());
        return attribute != null ? ((DeferredCsrfToken) attribute).get() : null;
    }
This is {@link WebAuthnControllerMvcTests}.

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