@Test
    void verifyOperation() throws Throwable {
        val context = MockRequestContext.create();
        context.setParameter(CasProtocolConstants.PARAMETER_RENEW, "true");
        val ssoRequest = SingleSignOnParticipationRequest.builder()
            .httpServletRequest(context.getHttpServletRequest())
            .httpServletResponse(context.getHttpServletResponse())
            .requestContext(context)
            .attributes(new HashMap<>(Map.of("hello", "world")))
            .build()
            .attribute("testkey", List.of("testvalue"));
        assertTrue(ssoRequest.containsAttribute("hello"));
        assertNotNull(ssoRequest.getAttributeValue("hello", String.class));
        assertTrue(ssoRequest.getRequestContext().isPresent());
        assertTrue(ssoRequest.getHttpServletRequest().isPresent());
        assertTrue(ssoRequest.isRequestingRenewAuthentication());
    }
This is {@link SingleSignOnParticipationRequestTests}.

@author Misagh Moayyed
@since 6.4.0
api/cas-server-core-api-webflow/src/test/java/org/apereo/cas/web/flow/SingleSignOnParticipationRequestTests.java