@Override
            public void execute() throws Throwable {
                val clientInfo = ClientInfoHolder.getClientInfo();
                val failureEvent = new CasSurrogateAuthenticationFailureEvent(this,
                    principal, "surrogate", clientInfo);
                surrogateAuthenticationEventListener.handleSurrogateAuthenticationFailureEvent(failureEvent);
                val successfulEvent = new CasSurrogateAuthenticationSuccessfulEvent(this,
                    principal, "surrogate", clientInfo);
                surrogateAuthenticationEventListener.handleSurrogateAuthenticationSuccessEvent(successfulEvent);
            }
This is {@link SurrogateAuthenticationEventListenerTests}.

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