@Test
    public void testDoubleDirectClientChooseBadDirectClient() {
        val profile = new CommonProfile();
        profile.setId(NAME);
        val profile2 = new CommonProfile();
        profile2.setId(VALUE);
        final DirectClient directClient = new MockDirectClient(NAME, Optional.of(new MockCredentials()), profile);
        final DirectClient directClient2 = new MockDirectClient(VALUE, Optional.of(new MockCredentials()), profile2);
        config.setClients(new Clients(CALLBACK_URL, directClient, directClient2));
        clients = NAME;
        context.addRequestParameter(Pac4jConstants.DEFAULT_FORCE_CLIENT_PARAMETER, VALUE);
        call();
        assertEquals(401, action.getCode());
    }
Tests {@link DefaultSecurityLogic}.

@author Jerome Leleu
@since 1.9.0
pac4j-core/src/test/java/org/pac4j/core/engine/DefaultSecurityLogicTests.java