@Test
    public void testNotAuthenticated() {
        final IndirectClient indirectClient = new MockIndirectClient(NAME, null, Optional.of(new MockCredentials()), new CommonProfile());
        config.setClients(new Clients(CALLBACK_URL, indirectClient));
        clients = Pac4jConstants.EMPTY_STRING;
        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