@Test
    void verifyResponseCanBeFoundFromRest() throws Throwable {
        val restProps = new RestfulInterruptProperties();
        restProps.setUrl("http://localhost:8888");
        val context = MockRequestContext.create(applicationContext);
        context.addHeader("accept-language", "fr");
        val q = new RestEndpointInterruptInquirer(restProps);
        val response = q.inquire(CoreAuthenticationTestUtils.getAuthentication("casuser"),
            CoreAuthenticationTestUtils.getRegisteredService(),
            CoreAuthenticationTestUtils.getService(),
            CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword(),
            context);
        assertNotNull(response);
        assertTrue(response.isBlock());
        assertTrue(response.isSsoEnabled());
        assertEquals(2, response.getLinks().size());
        assertEquals(getClass().getSimpleName(), response.getMessage());
    }
This is {@link RestEndpointInterruptInquirerTests}.

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