@Test
    void verifySerialization() throws Throwable {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();

        val policy = new RestfulRegisteredServiceProxyPolicy();
        policy.setEndpoint("http://localhost:9222");
        policy.setHeaders(CollectionUtils.wrap("header", "value"));
        MAPPER.writeValue(jsonFile, policy);
        val readPolicy = MAPPER.readValue(jsonFile, RestfulRegisteredServiceProxyPolicy.class);
        assertEquals(policy, readPolicy);
    }
This is {@link RestfulRegisteredServiceProxyPolicyTests}.

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