@Test
    void verifyOperation() {
        val service = RegisteredServiceTestUtils.getRegisteredService(UUID.randomUUID().toString());
        val tgtPolicy = new DefaultRegisteredServiceTicketGrantingTicketExpirationPolicy().setMaxTimeToLiveInSeconds(10);
        service.setTicketGrantingTicketExpirationPolicy(tgtPolicy);
        service.setServiceTicketExpirationPolicy(new DefaultRegisteredServiceServiceTicketExpirationPolicy(10, "PT10S"));
        service.setProxyTicketExpirationPolicy(new DefaultRegisteredServiceProxyTicketExpirationPolicy(10, "PT10S"));
        service.setProxyGrantingTicketExpirationPolicy(new DefaultRegisteredServiceProxyGrantingTicketExpirationPolicy(10));
        servicesManager.save(service);

        assertFalse(ticketExpirationPoliciesEndpoint.getExpirationPolicyBuilders().isEmpty());
        assertNotNull(ticketExpirationPoliciesEndpoint.getServicesManagerProvider().getObject());
        assertNotNull(ticketExpirationPoliciesEndpoint.getWebApplicationServiceFactory());
        var results = ticketExpirationPoliciesEndpoint.handle(service.getServiceId());
        assertFalse(results.isEmpty());

        results = ticketExpirationPoliciesEndpoint.handle(String.valueOf(service.getId()));
        assertFalse(results.isEmpty());
    }
This is {@link TicketExpirationPoliciesEndpointTests}.

@author Misagh Moayyed
@since 6.4.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/TicketExpirationPoliciesEndpointTests.java