@Test
    void checkAuthenticationHandlerResolution() throws Throwable {
        val resolver = new DefaultAuthenticationHandlerResolver();
        val transaction = CoreAuthenticationTestUtils.getAuthenticationTransactionFactory()
            .newTransaction(RegisteredServiceTestUtils.getService("serviceid2"),
                RegisteredServiceTestUtils.getCredentialsWithSameUsernameAndPassword("casuser"));
        val handlers = resolver.resolve(this.authenticationHandlers, transaction);
        assertEquals(handlers.size(), this.authenticationHandlers.size());
    }
This is {@link RegisteredServiceAuthenticationHandlerResolverTests}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/RegisteredServiceAuthenticationHandlerResolverTests.java