@Test
        void verifyBadKey() {
            val factory = new ClientFlowExecutionRepository(mock(FlowExecutionFactory.class),
                mock(FlowDefinitionLocator.class), CipherExecutorResolver.with(CipherExecutor.noOp()), casProperties.getWebflow());
            factory.removeFlowExecutionSnapshot(mock(FlowExecution.class));
            factory.removeAllFlowExecutionSnapshots(mock(FlowExecution.class));
            assertThrows(ClientFlowExecutionRepositoryException.class, () -> factory.getKey(mock(FlowExecution.class)));
            assertThrows(IllegalArgumentException.class, () -> factory.getFlowExecution(mock(FlowExecutionKey.class)));
            val key = mock(ClientFlowExecutionKey.class);
            when(key.getData()).thenThrow(IllegalArgumentException.class);
            assertThrows(ClientFlowExecutionRepositoryException.class, () -> factory.getFlowExecution(key));
        }
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