@Test
    void verifyOperationReconAsChain() {
        var service = getOidcRegisteredService();
        service.getScopes().clear();
        service.getScopes().add(OidcConstants.StandardScopes.OPENID.getScope());
        service.setAttributeReleasePolicy(new ReturnAllowedAttributeReleasePolicy(CollectionUtils.wrapList("cn")));

        service = (OidcRegisteredService) oidcServiceRegistryListener.postLoad(service);
        val policy = service.getAttributeReleasePolicy();
        assertFalse(policy instanceof RegisteredServiceChainingAttributeReleasePolicy);
        assertInstanceOf(ReturnAllowedAttributeReleasePolicy.class, policy);
    }
This is {@link OidcServiceRegistryListenerTests}.

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