@Test
        void verifySerialization() {
            val policy = new OidcPhoneScopeAttributeReleasePolicy();
            val chain = new ChainingAttributeReleasePolicy();
            chain.addPolicies(policy);
            val service = getOidcRegisteredService(UUID.randomUUID().toString(), randomServiceUrl());
            service.setAttributeReleasePolicy(chain);
            val serializer = new RegisteredServiceJsonSerializer(applicationContext);
            val json = serializer.toString(service);
            assertNotNull(json);
            assertNotNull(serializer.from(json));
        }
This is {@link OidcPhoneScopeAttributeReleasePolicyTests}.

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