@Test
    void verifyResumeFromStorage() throws Throwable {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();

        val authn = getAuthnRequest();
        authn.setProtocolBinding(SAMLConstants.SAML2_POST_BINDING_URI);
        storeAuthnRequest(request, response, authn);

        val st = getServiceTicket();
        request.addParameter(CasProtocolConstants.PARAMETER_TICKET, st.getId());
        val storage = samlIdPDistributedSessionStore.getTrackableSession(new JEEContext(request, response))
            .map(BrowserStorage.class::cast)
            .orElseThrow();
        request.addParameter(BrowserStorage.PARAMETER_BROWSER_STORAGE,
            MAPPER.writeValueAsString(Map.of(storage.getContext(), storage.getPayload())));
        val mv = controller.handleCallbackProfileRequestPost(response, request);
        assertNull(mv);
        assertEquals(HttpStatus.SC_OK, response.getStatus());
    }
This is {@link SSOSamlIdPProfileCallbackHandlerControllerWithBrowserStorageTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/web/idp/profile/sso/SSOSamlIdPProfileCallbackHandlerControllerWithBrowserStorageTests.java