@Test
    void verifyOperation() throws Exception {
        val context = MockRequestContext.create(applicationContext);
        val webContext = new JEEContext(context.getHttpServletRequest(), context.getHttpServletResponse());
        val manager = new ProfileManager(webContext, delegatedClientDistributedSessionStore);
        val profile = new CommonProfile();
        profile.setClientName("SAML2Client");
        manager.save(true, profile, false);
        val results = delegatedSaml2ClientTerminateSessionAction.execute(context);
        assertNull(results);
        val relayState = delegatedClientDistributedSessionStore.get(webContext, SAML2StateGenerator.SAML_RELAY_STATE_ATTRIBUTE);
        assertEquals("SAML2Client", relayState.orElseThrow().toString());
    }
This is {@link DelegatedSaml2ClientTerminateSessionActionTests}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-pac4j-saml/src/test/java/org/apereo/cas/web/saml2/DelegatedSaml2ClientTerminateSessionActionTests.java