@Test
    @SuppressWarnings("DeadException")
    void verifyOperation() {
        assertDoesNotThrow(() -> {
            new AbstractTicketValidationException(RegisteredServiceTestUtils.getService()) {
                @Serial
                private static final long serialVersionUID = 3026378968544530445L;
            };
            new AbstractTicketValidationException("code", RegisteredServiceTestUtils.getService()) {
                @Serial
                private static final long serialVersionUID = 3026378968544530445L;
            };
            new AbstractTicketValidationException("code", "message", List.of(), RegisteredServiceTestUtils.getService()) {
                @Serial
                private static final long serialVersionUID = 3026378968544530445L;
            };
            new AbstractTicketValidationException("code", new RuntimeException(), List.of(), RegisteredServiceTestUtils.getService()) {
                @Serial
                private static final long serialVersionUID = 3026378968544530445L;
            };
        });

    }
This is {@link TicketValidationExceptionTests}.

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