@Test
    void verifyResponseCanBeFoundFromGroovy() throws Throwable {
        val inquirer = new GroovyScriptInterruptInquirer(new ClassPathResource("interrupt.groovy"));
        val response = inquirer.inquire(CoreAuthenticationTestUtils.getAuthentication("casuser"),
            CoreAuthenticationTestUtils.getRegisteredService(),
            CoreAuthenticationTestUtils.getService(),
            CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword(),
            MockRequestContext.create());
        assertNotNull(response);
        assertFalse(response.isBlock());
        assertTrue(response.isSsoEnabled());
        assertEquals(2, response.getLinks().size());
    }
This is {@link GroovyScriptInterruptInquirerTests}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-interrupt-core/src/test/java/org/apereo/cas/interrupt/GroovyScriptInterruptInquirerTests.java