@Test
    void verifyOperation() throws Throwable {
        val uid = UUID.randomUUID().toString();
        val desc = consentDecisionBuilder.build(RegisteredServiceTestUtils.getService(),
            RegisteredServiceTestUtils.getRegisteredService(), uid,
            CoreAuthenticationTestUtils.getAttributes());
        consentRepository.storeConsentDecision(desc);

        val context = MockRequestContext.create();

        val authn = RegisteredServiceTestUtils.getAuthentication(uid);
        WebUtils.putAuthentication(authn, context);

        val result = consentAccountProfilePrepareAction.execute(context);
        assertNull(result);
        assertTrue(context.getFlowScope().contains("consentDecisions"));
    }
This is {@link ConsentAccountProfilePrepareActionTests}.

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