private void internalTestByName(final boolean fakeFirst) {
        val facebookClient = newFacebookClient();
        val fakeClient = new MockDirectClient(NAME, Optional.empty(), null);
        final Clients clients;
        if (fakeFirst) {
            clients = new Clients(CALLBACK_URL, fakeClient, facebookClient);
        } else {
            clients = new Clients(CALLBACK_URL, facebookClient, fakeClient);
        }
        assertEquals(facebookClient, clients.findClient("FacebookClient").get());
        assertEquals(fakeClient, clients.findClient(NAME).get());
    }
This class tests the {@link Clients} class.

@author Jerome Leleu
@since 1.3.0
pac4j-core/src/test/java/org/pac4j/core/client/ClientsTests.java