@Test
    void verifyOperation() throws Throwable {
        val h1 = new SimpleTestUsernamePasswordAuthenticationHandler("h1");
        val h2 = new SimpleTestUsernamePasswordAuthenticationHandler("h2");
        h2.setState(AuthenticationHandlerStates.STANDBY);
        val resolver = new DefaultAuthenticationHandlerResolver();
        assertTrue(resolver.supports(of(h1, h2), mock(AuthenticationTransaction.class)));
        val result = resolver.resolve(of(h1, h2), mock(AuthenticationTransaction.class));
        assertTrue(result.contains(h1));
        assertFalse(result.contains(h2));
        assertEquals(Ordered.LOWEST_PRECEDENCE, resolver.getOrder());
    }
This is {@link DefaultAuthenticationHandlerResolverTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/handler/support/DefaultAuthenticationHandlerResolverTests.java