@Test
    void verifyTransition() {
        val registry = mock(FlowDefinitionRegistry.class);
        val cfg = new AbstractCasWebflowConfigurer(mock(FlowBuilderServices.class),
            registry, new StaticApplicationContext(), new CasConfigurationProperties()) {
        };
        val state = mock(TransitionableState.class);
        when(state.getId()).thenReturn("example");
        when(state.getTransitionSet()).thenReturn(new TransitionSet());
        val transition = cfg.createTransition("destination", state);
        assertNotNull(transition);

        val transition2 = cfg.createTransitionForState(state, "criteria");
        assertNotNull(transition2);

        val flow = mock(Flow.class);
        assertNull(cfg.getTransitionableState(flow, "example", ActionState.class));
        assertNull(cfg.getTransitionableState(flow, "example"));
    }
This is {@link CasWebflowConfigurerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-webflow/src/test/java/org/apereo/cas/web/flow/configurer/CasWebflowConfigurerTests.java