@Test
    void verifyPolicyByIpAddress() throws Exception {
        val policy = new DefaultRegisteredServiceTicketGrantingTicketExpirationPolicy();
        policy.setIpAddresses(Map.of(".+86.151.+", 10L));
        val expirationPolicy = policy.toExpirationPolicy().orElseThrow();
        assertEquals(10L, expirationPolicy.getTimeToLive());
    }
This is {@link DefaultRegisteredServiceTicketGrantingTicketExpirationPolicyTests}.

@author Misagh Moayyed
@since 6.4.0
core/cas-server-core-services-api/src/test/java/org/apereo/cas/services/DefaultRegisteredServiceTicketGrantingTicketExpirationPolicyTests.java