@Test
    void verifySerializationToJson() throws IOException {
        val filter = new MetadataEntityAttributesAttributeReleasePolicy();
        filter.setEntityAttribute("entity-attribute");
        filter.setEntityAttributeFormat("entity-format");
        filter.setEntityAttributeValues(CollectionUtils.wrapSet("one", "two"));
        MAPPER.writeValue(JSON_FILE, filter);
        val strategyRead = MAPPER.readValue(JSON_FILE, MetadataEntityAttributesAttributeReleasePolicy.class);
        assertEquals(filter, strategyRead);
        assertNotNull(strategyRead.toString());
    }
This is {@link MetadataEntityAttributesAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/services/MetadataEntityAttributesAttributeReleasePolicyTests.java