@Test
    void verifyCityUnknown() throws Throwable {
        val cityReader = mock(DatabaseReader.class);
        when(cityReader.city(any())).thenThrow(new AddressNotFoundException("Unknown"));
        val service = new MaxmindDatabaseGeoLocationService(new MaxmindProperties()).withCityDatabaseReader(cityReader);
        val response = service.locate("127.0.0.1");
        assertEquals(0, response.getLatitude());
        assertEquals(0, response.getLongitude());
    }
This is {@link MaxmindDatabaseGeoLocationServiceTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-geolocation-maxmind/src/test/java/org/apereo/cas/support/geo/maxmind/MaxmindDatabaseGeoLocationServiceTests.java