@Test
    void checkDefaultPolicy() throws Throwable {
        val resolver = new RegisteredServiceAuthenticationPolicyResolver(this.servicesManager,
            new DefaultAuthenticationServiceSelectionPlan(new DefaultAuthenticationServiceSelectionStrategy()));
        val service = RegisteredServiceTestUtils.getService("serviceid2");
        val transaction = CoreAuthenticationTestUtils.getAuthenticationTransactionFactory().newTransaction(
            service, RegisteredServiceTestUtils.getCredentialsWithSameUsernameAndPassword("casuser"));

        assertFalse(resolver.supports(transaction));
        val policies = resolver.resolve(transaction);
        assertTrue(policies.isEmpty());

        val authPolicy = servicesManager.findServiceBy(service).getAuthenticationPolicy();
        assertNotNull(authPolicy);
        assertNull(authPolicy.getCriteria());
    }
This is {@link RegisteredServiceAuthenticationPolicyResolverTests}.

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