@Test
    void verifyTransitionCreate() {
        val registry = mock(FlowDefinitionRegistry.class);

        val fbs = mock(FlowBuilderServices.class);
        when(fbs.getConversionService()).thenReturn(mock(ConversionService.class));
        val cfg = new AbstractCasWebflowConfigurer(fbs,
            registry, new StaticApplicationContext(), new CasConfigurationProperties()) {
        };

        val flow = mock(Flow.class);
        val state = mock(TransitionableState.class);
        when(flow.containsState("endStateId")).thenReturn(Boolean.TRUE);
        when(flow.getState("endStateId")).thenReturn(state);
        assertDoesNotThrow(() -> cfg.createTransitionsForState(flow, "endStateId", Map.of()));
    }
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