@Test
    void verifyOperation() throws Throwable {
        assertNull(geoLocationService.locate("8.8.8.8"));
        assertNull(geoLocationService.locate(null, 12.123));
        val resp = geoLocationService.locate(40.689060, -74.044636);
        assertEquals(40.689060, resp.getLatitude());
        assertEquals(-74.044636, resp.getLongitude());
        assertTrue(resp.getAddresses().isEmpty());
        assertDoesNotThrow(() -> {
            geoLocationService.locate(InetAddress.getByName("www.github.com"));
        });
    }
This is {@link GoogleMapsGeoLocationServiceTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-geolocation-googlemaps/src/test/java/org/apereo/cas/support/geo/google/GoogleMapsGeoLocationServiceTests.java