@Test
    public void testAddClient() {
        val facebookClient = newFacebookClient();
        val yahooClient = newYahooClient();
        val clients = new Clients(CALLBACK_URL, facebookClient);
        clients.findAllClients();
        final List<Client> list = new ArrayList<>();
        list.add(facebookClient);
        list.add(yahooClient);
        clients.setClients(list);
        clients.setCallbackUrlResolver(new NoParameterCallbackUrlResolver());
        val yclient = (IndirectClient) clients.findClient("YahooClient").get();
        assertTrue(yclient.getCallbackUrlResolver() instanceof NoParameterCallbackUrlResolver);
        val fclient = (IndirectClient) clients.findClient("FacebookClient").get();
        assertTrue(fclient.getCallbackUrlResolver() instanceof NoParameterCallbackUrlResolver);
    }
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