@Test
    void verifyOperation() {
        val cleaner = mock(TicketRegistryCleaner.class);
        when(cleaner.clean()).thenCallRealMethod();
        when(cleaner.cleanTicket(any())).thenCallRealMethod();
        assertEquals(0, cleaner.clean());
        assertEquals(0, cleaner.cleanTicket(mock(Ticket.class)));
    }
This is {@link TicketRegistryCleanerTests}.

@author Misagh Moayyed
@since 6.3.0
api/cas-server-core-api-ticket/src/test/java/org/apereo/cas/ticket/TicketRegistryCleanerTests.java