@Test
    void verifyEmptyCreds() throws Throwable {
        val request = new MockHttpServletRequest();
        val requestBody = new LinkedMultiValueMap<String, String>();
        val service = getSurrogateAuthenticationService(Map.of("test", List.of("surrogate")));
        val factory = new SurrogateAuthenticationRestHttpRequestCredentialFactory(service, casProperties.getAuthn().getSurrogate());
        assertTrue(factory.fromRequest(request, requestBody).isEmpty());
    }
This is {@link SurrogateAuthenticationRestHttpRequestCredentialFactoryTests}.

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