@Test
    void verifySerializeANeverExpiresExpirationPolicyToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val policyWritten = new HardTimeoutExpirationPolicy();
        MAPPER.writeValue(jsonFile, policyWritten);
        val policyRead = MAPPER.readValue(jsonFile, HardTimeoutExpirationPolicy.class);
        assertEquals(policyWritten, policyRead);
    }
Test cases for {@link HardTimeoutExpirationPolicy}.

@author Misagh Moayyed
@since 4.1
core/cas-server-core-tickets/src/test/java/org/apereo/cas/ticket/expiration/HardTimeoutExpirationPolicyTests.java