@Test
        void verifyLoadAndLookup() {
            val stream = getOidcRegisteredServiceStream();
            servicesManager.save(stream);
            val loadedServices = new ArrayList<>(servicesManager.load());

            val candidate = (OidcRegisteredService) loadedServices.getLast();
            val stopwatch = new StopWatch();
            stopwatch.start();

            val serviceToFind = webApplicationServiceFactory.createService(candidate.getServiceId());
            serviceToFind.getAttributes().put(OAuth20Constants.CLIENT_ID, List.of(candidate.getClientId()));

            val result = servicesManager.findServiceBy(serviceToFind);
            assertNotNull(result);
            assertEquals(candidate, result);

            stopwatch.stop();
            assertTrue(stopwatch.getDuration().toMillis() < 1000);
        }
This is {@link OidcServicesManagerTests}.

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