@Test
    void verifyFindByQuery() {
        val service1 = getOidcRegisteredService(UUID.randomUUID().toString(),
            "https://app.example.org/%s".formatted(RandomUtils.randomAlphabetic(4)));
        val service2 = getOidcRegisteredService(UUID.randomUUID().toString(),
            "https://app.example.org/%s".formatted(RandomUtils.randomAlphabetic(4)));
        servicesManager.save(service1, service2);

        assertEquals(1, servicesManager.findServicesBy(
            RegisteredServiceQuery.of(OidcRegisteredService.class, "id", service1.getId())).count());
        assertEquals(1, servicesManager.findServicesBy(
            RegisteredServiceQuery.of(OidcRegisteredService.class, "id", service2.getId()),
            RegisteredServiceQuery.of(OidcRegisteredService.class, "clientId", service2.getClientId()),
            RegisteredServiceQuery.of(OidcRegisteredService.class, "name", service2.getName())).count());
        assertEquals(0, servicesManager.findServicesBy(
            RegisteredServiceQuery.of(CasRegisteredService.class, "clientId", service1.getClientId())).count());
        assertEquals(0, servicesManager.findServicesBy(
            RegisteredServiceQuery.of(OAuthRegisteredService.class, "clientId", service1.getClientId())).count());
        assertEquals(1, servicesManager.findServicesBy(
            RegisteredServiceQuery.of(OAuthRegisteredService.class, "clientId", service1.getClientId()).withIncludeAssignableTypes(true)).count());
    }
This is {@link OidcServicesManagerRegisteredServiceLocatorTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-oidc/src/test/java/org/apereo/cas/oidc/services/OidcServicesManagerRegisteredServiceLocatorTests.java