@Test
    void verifyFinalizedInterruptBlockedExternalRedirect() throws Throwable {
        val context = MockRequestContext.create(applicationContext).withUserAgent();
        context.setParameter("link", "https://google.com");

        WebUtils.putAuthentication(CoreAuthenticationTestUtils.getAuthentication(), context);
        WebUtils.putRegisteredService(context, CoreAuthenticationTestUtils.getRegisteredService());

        val interrupt = InterruptResponse.interrupt();
        interrupt.setBlock(true);
        InterruptUtils.putInterruptIn(context, interrupt);
        assertThrows(UnauthorizedServiceException.class, () -> action.execute(context));

        interrupt.setLinks(Map.of("link1", "https://google.com"));
        InterruptUtils.putInterruptIn(context, interrupt);
        val event = action.execute(context);
        assertEquals(CasWebflowConstants.TRANSITION_ID_SUCCESS, event.getId());
    }
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