@Test
    void verifyLocateFails() throws Throwable {
        val svc = mock(AbstractGeoLocationService.class);
        when(svc.locate(anyString())).thenReturn(null);
        when(svc.locate(anyString(), any(GeoLocationRequest.class))).thenCallRealMethod();
        when(svc.locate(anyDouble(), anyDouble())).thenReturn(new GeoLocationResponse());
        assertNotNull(svc.locate("1.2.3.4", new GeoLocationRequest(1, 1)));
    }
This is {@link GeoLocationServiceTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-geolocation/src/test/java/org/apereo/cas/support/geo/GeoLocationServiceTests.java