@Test
    void verifyConsentPolicyWithScopesSavedAfterLoad() {
        var svc = new OidcRegisteredService();
        svc.setName("Scopes");
        svc.setServiceId("testId");
        svc.setJwks("file:/tmp/thekeystorehere.jwks");
        svc.setClientId("client");
        svc.setClientSecret("secret");
        svc.setScopes(CollectionUtils.wrapSet(
            OidcConstants.StandardScopes.PROFILE.getScope(),
            OidcConstants.StandardScopes.ADDRESS.getScope(),
            OidcConstants.StandardScopes.OPENID.getScope()));

        getNewServiceRegistry().save(svc);
        getNewServiceRegistry().load();
        svc = getNewServiceRegistry().findServiceByExactServiceName(svc.getName(), OidcRegisteredService.class);

        var consentPolicy = svc.getAttributeReleasePolicy().getConsentPolicy();
        assertEquals(1, consentPolicy.size());

        getNewServiceRegistry().load();
        svc = getNewServiceRegistry().findServiceById(svc.getId(), OidcRegisteredService.class);

        consentPolicy = svc.getAttributeReleasePolicy().getConsentPolicy();
        assertEquals(1, consentPolicy.size());
    }
Handles tests for {@link JpaServiceRegistry} for OIDC services.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-jpa-service-registry/src/test/java/org/apereo/cas/services/JpaServiceRegistryOidcTests.java