@Test
    void verifyOperation() throws Exception {
        val context = MockRequestContext.create(applicationContext);
        context.setSessionAttribute(Pac4jConstants.REQUESTED_URL, "https://github.com");
        val results = delegatedProfileTerminationHandler.beforeSessionTermination(context);
        assertFalse(results.isEmpty());
        delegatedProfileTerminationHandler.afterSessionTermination(results, context);
        assertNotNull(context.getSessionAttribute(Pac4jConstants.REQUESTED_URL));
    }
This is {@link DelegatedProfileTerminationHandlerTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pac4j-core/src/test/java/org/apereo/cas/web/flow/DelegatedProfileTerminationHandlerTests.java