@Test
    void verifyUnauthz() throws Throwable {
        val ex = new InvalidProxyGrantingTicketForServiceTicketException(CoreAuthenticationTestUtils.getService());
        assertTrue(handler.supports(ex, context));
        val event = handler.handle(ex, context);
        assertNotNull(event);
        assertEquals(InvalidProxyGrantingTicketForServiceTicketException.class.getSimpleName(), event.getId());
    }
This is {@link DefaultCasWebflowAbstractTicketExceptionHandlerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-webflow/src/test/java/org/apereo/cas/web/flow/authentication/DefaultCasWebflowAbstractTicketExceptionHandlerTests.java