@Test
    void verifyGeoLocationDevice() throws Throwable {
        val context = MockRequestContext.create(applicationContext);
        context.setRemoteAddr("1.2.3.4");
        context.withUserAgent();
        context.setParameter("geolocation", "40,70,1000,100");

        val geoResp = new GeoLocationResponse();
        geoResp.addAddress("GeoAddress");
        val geoLocationService = mock(GeoLocationService.class);
        when(geoLocationService.locate(anyDouble(), anyDouble())).thenReturn(geoResp);
        when(geoLocationService.locate(any(GeoLocationRequest.class))).thenReturn(geoResp);
        val ex = new GeoLocationDeviceFingerprintExtractor(geoLocationService);
        val result = ex.extract(RegisteredServiceTestUtils.getAuthentication(),
            context.getHttpServletRequest(), context.getHttpServletResponse());
        assertTrue(result.isPresent());
    }
This is {@link GeoLocationDeviceFingerprintExtractorTests}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-trusted-mfa/src/test/java/org/apereo/cas/trusted/authentication/storage/fingerprint/GeoLocationDeviceFingerprintExtractorTests.java