@Test
    void verifyOperationNeedsMfaByGeo() throws Throwable {
        request.addHeader(HttpHeaders.USER_AGENT, "FIREFOX");
        request.addParameter("geolocation", "1000,1000,1000,1000");
        ClientInfoHolder.setClientInfo(ClientInfo.from(request));
        val event = resolver.resolve(context);
        assertEquals(1, event.size());
        assertEquals(TestMultifactorAuthenticationProvider.ID, event.iterator().next().getId());
    }
This is {@link AdaptiveMultifactorAuthenticationPolicyEventResolverTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-webflow-mfa/src/test/java/org/apereo/cas/AdaptiveMultifactorAuthenticationPolicyEventResolverTests.java