@Test
        void verifyRepositoriesRequestedByQuery() {
            val query = AttributeRepositoryQuery.builder()
                .activeRepositoryIds(Set.of("stub", "ldap"))
                .authenticationHandler(new SimpleTestUsernamePasswordAuthenticationHandler("simpleHandler"))
                .principal(RegisteredServiceTestUtils.getPrincipal())
                .service(RegisteredServiceTestUtils.getService(UUID.randomUUID().toString()))
                .build();
            val results = attributeRepositoryResolver.resolve(query);
            assertEquals(2, results.size());
            assertTrue(results.containsAll(query.getActiveRepositoryIds()));
        }
This is {@link DefaultAttributeRepositoryResolverTests}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-person-directory/src/test/java/org/apereo/cas/persondir/DefaultAttributeRepositoryResolverTests.java