@Test
    void verifySerializeToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val policyWritten = new ReturnEnvironmentAttributeReleasePolicy();
        policyWritten.setEnvironmentVariables(CollectionUtils.wrap("HOME", "HOME"));
        policyWritten.setSystemProperties(CollectionUtils.wrap("KEY", "KEY1"));
        MAPPER.writeValue(jsonFile, policyWritten);
        val policyRead = MAPPER.readValue(jsonFile, ReturnEnvironmentAttributeReleasePolicy.class);
        assertEquals(policyWritten, policyRead);
    }
This is {@link ReturnEnvironmentAttributeReleasePolicyTests}.

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