@Test
    void verifyExpirationPolicy() throws Throwable {
        val factory = (CasSimpleMultifactorAuthenticationTicketFactory) this.ticketFactory.get(CasSimpleMultifactorAuthenticationTicket.class);
        val ticket = factory.create(RegisteredServiceTestUtils.getService("example"), new HashMap<>());
        assertNotNull(ticket);
        assertEquals(30, ticket.getExpirationPolicy().getTimeToLive());
    }
This is {@link CasSimpleMultifactorAuthenticationTicketFactoryTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-simple-mfa/src/test/java/org/apereo/cas/mfa/simple/CasSimpleMultifactorAuthenticationTicketFactoryTests.java