@Test
        void verifyByCredentialType() throws Throwable {
            val credential = new UsernamePasswordCredential();
            credential.setUsername(UUID.randomUUID().toString());
            credential.assignPassword(credential.getUsername());
            credential.setSource("Handler1");

            val transaction = CoreAuthenticationTestUtils.getAuthenticationTransactionFactory()
                .newTransaction(CoreAuthenticationTestUtils.getWebApplicationService(), credential);

            val handlers = authenticationEventExecutionPlan.resolveAuthenticationHandlers(transaction);
            assertEquals(1, handlers.size());
            assertEquals("Handler1", handlers.iterator().next().getName());
        }
This is {@link DefaultAuthenticationEventExecutionPlanTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-authentication/src/test/java/org/apereo/cas/authentication/DefaultAuthenticationEventExecutionPlanTests.java