@Test
    void verifyNeverExpiresOperation() {
        val properties = new CasConfigurationProperties();
        properties.getAuthn().getSamlIdp().getTicket().getAttributeQuery().setTimeToKillInSeconds(0);
        val builder = new SamlAttributeQueryTicketExpirationPolicyBuilder(properties);
        val ticket = mock(TicketGrantingTicketAwareTicket.class);
        when(ticket.getCreationTime()).thenReturn(ZonedDateTime.now(Clock.systemUTC()).minusDays(2));
        assertFalse(builder.toTicketExpirationPolicy().isExpired(ticket));
    }
This is {@link SamlAttributeQueryTicketExpirationPolicyBuilderTests}.

@author Misagh Moayyed
@since 6.5.0
support/cas-server-support-saml-idp-ticket/src/test/java/org/apereo/cas/ticket/query/SamlAttributeQueryTicketExpirationPolicyBuilderTests.java