@Test
    void verifyJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val policyWritten = new ReturnRestfulAttributeReleasePolicy()
            .setEndpoint("http://endpoint.example.org")
            .setAllowedAttributes(CollectionUtils.wrap("attribute1", CollectionUtils.wrapList("value1")));
        MAPPER.writeValue(jsonFile, policyWritten);
        val policyRead = MAPPER.readValue(jsonFile, ReturnRestfulAttributeReleasePolicy.class);
        assertEquals(policyWritten, policyRead);
    }
This is {@link ReturnRestfulAttributeReleasePolicyTests}.

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