@Test
    void verifySerializeToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val policyWritten = new ReturnStaticAttributeReleasePolicy();
        policyWritten.setAllowedAttributes(CollectionUtils.wrap("Hello", CollectionUtils.wrapList("World")));
        MAPPER.writeValue(jsonFile, policyWritten);
        val policyRead = MAPPER.readValue(jsonFile, ReturnStaticAttributeReleasePolicy.class);
        assertEquals(policyWritten, policyRead);
    }
This is {@link ReturnStaticAttributeReleasePolicyTests}.

@author Misagh Moayyed
@since 6.6.0
core/cas-server-core-authentication-attributes/src/test/java/org/apereo/cas/services/ReturnStaticAttributeReleasePolicyTests.java