@Bean
        public SecurityTokenServiceTokenFetcher securityTokenServiceTokenFetcher() throws Throwable {
            val token = new SecurityToken(UUID.randomUUID().toString());
            val fetcher = mock(SecurityTokenServiceTokenFetcher.class);
            when(fetcher.fetch(any(), anyString())).thenReturn(Optional.of(token));
            return fetcher;
        }
This is {@link WSFederationValidateRequestCallbackControllerTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-ws-idp/src/test/java/org/apereo/cas/ws/idp/web/WSFederationValidateRequestCallbackControllerTests.java