@Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public GeoLocationService geoLocationService() throws Throwable {
            val service = mock(GeoLocationService.class);
            val response = new GeoLocationResponse();
            response.addAddress("MSIE");
            when(service.locate(anyString(), any(GeoLocationRequest.class))).thenReturn(response);
            return service;
        }
This is {@link AbstractMultifactorAuthenticationTrustStorageTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-trusted-mfa/src/test/java/org/apereo/cas/trusted/AbstractMultifactorAuthenticationTrustStorageTests.java