@Test
    void verifySerialization() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val strategyWritten = new HttpRequestRegisteredServiceAccessStrategy();
        strategyWritten.setIpAddress("129.+.123.\\d\\d");
        strategyWritten.setUserAgent("Google Chrome (Firefox)");
        strategyWritten.setHeaders(CollectionUtils.wrap("Header1", "Value.+Pattern"));
        MAPPER.writeValue(jsonFile, strategyWritten);
        val read = MAPPER.readValue(jsonFile, RegisteredServiceAccessStrategy.class);
        assertEquals(strategyWritten, read);
        assertNotNull(read.toString());
    }
This is {@link HttpRequestRegisteredServiceAccessStrategyTests}.

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