@Test
    void verifyFinalizedInterruptBlockedUnauthzUrl() throws Throwable {
        val context = MockRequestContext.create(applicationContext);

        val interrupt = InterruptResponse.interrupt();
        interrupt.setBlock(true);

        InterruptUtils.putInterruptIn(context, interrupt);
        val registeredService = RegisteredServiceTestUtils.getRegisteredService();
        val strategy = new DefaultRegisteredServiceAccessStrategy(true, true);
        strategy.setUnauthorizedRedirectUrl(new URI("https://www.github.com"));
        registeredService.setAccessStrategy(strategy);
        WebUtils.putRegisteredService(context, registeredService);

        val event = action.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_STOP, event.getId());
        assertTrue(context.getMockExternalContext().isResponseComplete());
        assertNotNull(context.getMockExternalContext().getExternalRedirectUrl());
    }
This is {@link FinalizeInterruptFlowActionTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-interrupt-webflow/src/test/java/org/apereo/cas/interrupt/webflow/actions/FinalizeInterruptFlowActionTests.java