@Test
    void verifySsoParticipationByAttributeAsJson() throws IOException {
        val policy = new AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy();
        policy.setAttributes(Map.of("cn", List.of("\\d/\\d/\\d")));
        policy.setRequireAllAttributes(true);
        val file = Files.createTempFile("attr", ".json").toFile();
        MAPPER.writeValue(file, policy);
        val read = MAPPER.readValue(file, AttributeBasedRegisteredServiceSingleSignOnParticipationPolicy.class);
        assertEquals(policy, read);
    }
This is {@link ChainingRegisteredServiceSingleSignOnParticipationPolicyTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-services/src/test/java/org/apereo/cas/services/ChainingRegisteredServiceSingleSignOnParticipationPolicyTests.java