@Test
        void verifyLaunchAndResumeFlow() {
            val request1 = new MockHttpServletRequest();
            request1.setRemoteAddr("223.456.789.000");
            request1.setLocalAddr("123.456.789.000");
            request1.addHeader(HttpHeaders.USER_AGENT, "test");
            ClientInfoHolder.setClientInfo(ClientInfo.from(request1));

            val context = new MockExternalContext();
            context.setNativeRequest(request1);
            context.setNativeResponse(new MockHttpServletResponse());

            val launchResult = flowExecutor.launchExecution("test-flow", new LocalAttributeMap<>(), context);
            assertNotNull(launchResult.getPausedKey());
            context.setEventId("submit");

            val request2 = new MockHttpServletRequest();
            request2.setRemoteAddr("223.456.789.000");
            request2.setLocalAddr("123.456.789.000");
            request2.addHeader(HttpHeaders.USER_AGENT, "test-another");
            ClientInfoHolder.setClientInfo(ClientInfo.from(request2));
            context.setNativeRequest(request2);
            assertThrows(ClientFlowExecutionRepositoryException.class, () -> flowExecutor.resumeExecution(launchResult.getPausedKey(), context));
        }
Test cases for {@link ClientFlowExecutionRepository}.

@author Misagh Moayyed
@since 6.1
core/cas-server-core-webflow/src/test/java/org/apereo/cas/web/flow/executor/ClientFlowExecutionRepositoryTests.java