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

        context.setParameter(TokenConstants.PARAMETER_NAME_TOKEN, "token");
        context.setParameter("deviceId", "abcdefgh987654321");
        val result = qrAuthenticationValidateWebSocketChannelAction.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_FINALIZE, result.getId());
        assertInstanceOf(QRAuthenticationTokenCredential.class, WebUtils.getCredential(context));
    }
This is {@link QRAuthenticationValidateTokenActionTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-qr-authentication/src/test/java/org/apereo/cas/qr/web/flow/QRAuthenticationValidateTokenActionTests.java