@Test
    void verifyResolves() throws Throwable {
        val resolver = new ByCredentialTypeAuthenticationHandlerResolver(UsernamePasswordCredential.class);
        val c = CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword();
        c.setSource("TestHandler");
        val handler = new SimpleTestUsernamePasswordAuthenticationHandler("TESTHANDLER");
        val results = resolver.resolve(CollectionUtils.wrapSet(handler), CoreAuthenticationTestUtils.getAuthenticationTransactionFactory().newTransaction(c));
        assertFalse(results.isEmpty());
    }
This is {@link ByCredentialTypeAuthenticationHandlerResolverTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-api/src/test/java/org/apereo/cas/authentication/handler/ByCredentialTypeAuthenticationHandlerResolverTests.java