@Test
    public void testRealAjaxRequest() {
        val context = MockWebContext.create().addRequestHeader("X-Requested-With", "XMLHttpRequest");
        assertTrue(resolver.isAjax(new CallContext(context, null)));
    }
Tests the {@link DefaultAjaxRequestResolver}.

@author Jerome Leleu
@since 1.8.0
pac4j-core/src/test/java/org/pac4j/core/http/ajax/DefaultAjaxRequestResolverTests.java