@Test
    void verifySerializationToJson() throws IOException {
        val jsonFile = Files.createTempFile(RandomUtils.randomAlphabetic(8), ".json").toFile();
        val p = new DefaultRegisteredServiceServiceTicketExpirationPolicy();
        p.setNumberOfUses(12);
        p.setTimeToLive("60");
        MAPPER.writeValue(jsonFile, p);
        val repositoryRead = MAPPER.readValue(jsonFile, DefaultRegisteredServiceServiceTicketExpirationPolicy.class);
        assertEquals(p, repositoryRead);
    }
This is {@link DefaultRegisteredServiceServiceTicketExpirationPolicyTests}.

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