@Test
    void verifyCriteria() {
        val registry = mock(FlowDefinitionRegistry.class);
        val fbs = mock(FlowBuilderServices.class);
        val cfg = new AbstractCasWebflowConfigurer(fbs,
            registry, new StaticApplicationContext(), new CasConfigurationProperties()) {
        };
        val transition = mock(Transition.class);
        val criteria = new TransitionCriteriaChain();
        when(transition.getExecutionCriteria()).thenReturn(criteria);
        assertTrue(cfg.getTransitionExecutionCriteriaChainForTransition(transition).isEmpty());

        when(transition.getExecutionCriteria()).thenReturn(mock(TransitionCriteria.class));
        assertFalse(cfg.getTransitionExecutionCriteriaChainForTransition(transition).isEmpty());
    }
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