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

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

        InterruptUtils.putInterruptIn(context, interrupt);
        WebUtils.putRegisteredService(context, CoreAuthenticationTestUtils.getRegisteredService());

        assertThrows(UnauthorizedServiceException.class, () -> action.execute(context));
    }
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