@Override
    @Test
    void verifyUserAllowedToProxy() throws Throwable {
        val props = casProperties.getAuthn().getSurrogate().getRest();
        val port = URI.create(props.getUrl()).getPort();
        var data = MAPPER.writeValueAsString(CollectionUtils.wrapList("casuser", "otheruser"));
        try (val webServer = new MockWebServer(port,
            new ByteArrayResource(data.getBytes(StandardCharsets.UTF_8), "REST Output"), MediaType.APPLICATION_JSON_VALUE)) {
            webServer.start();
            assertTrue(webServer.isRunning());
            super.verifyUserAllowedToProxy();
        }
    }
This is {@link SurrogateRestAuthenticationServiceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-surrogate-authentication-rest/src/test/java/org/apereo/cas/authentication/surrogate/SurrogateRestAuthenticationServiceTests.java