@Test
    public void testQueryParameter() {
        final IndirectClient facebook = new MockIndirectClient("Facebook");
        final DirectClient basicAuth = new MockDirectClient("BasicAuth");
        final IndirectClient cas = new MockIndirectClient("cas");
        val clients = new Clients(CALLBACK_URL, facebook, basicAuth, cas);
        val context = MockWebContext.create()
            .addRequestParameter(Pac4jConstants.DEFAULT_CLIENT_NAME_PARAMETER, "facebook   ");
        final ClientFinder finder = new DefaultCallbackClientFinder();
        val result = finder.find(clients, context, null);
        assertEquals(1, result.size());
        assertEquals(facebook, result.get(0));
    }
Tests {@link DefaultCallbackClientFinder}.

@author Jerome Leleu
@since 3.0.0
pac4j-core/src/test/java/org/pac4j/core/client/finder/DefaultCallbackClientFinderTests.java