private static RequestContext getRequestContext(final String captcha, final String givenCaptcha) throws Exception {
        val context = MockRequestContext.create();
        context.setParameter("captchaValue", givenCaptcha);
        val credential = RegisteredServiceTestUtils.getCredentialsWithSameUsernameAndPassword("casuser");
        context.getConversationScope().put(Credential.class.getName(), credential);
        context.getConversationScope().put("captchaValue", captcha);
        return context;
    }
This is {@link AccountUnlockStatusActionTests}.

@author Misagh Moayyed
@since 6.6.0
support/cas-server-support-pm-webflow/src/test/java/org/apereo/cas/pm/web/flow/actions/AccountUnlockStatusActionTests.java