@Test
    public void testAuthorizerThrowsRequiresHttpAction() {
        val profile = new CommonProfile();
        Map<String, CommonProfile> profiles = new LinkedHashMap<>();
        profiles.put(NAME, profile);
        sessionStore.set(context, Pac4jConstants.USER_PROFILES, profiles);
        final IndirectClient indirectClient = new MockIndirectClient(NAME, null, Optional.of(new MockCredentials()), new CommonProfile());
        authorizers = NAME;
        config.setClients(new Clients(CALLBACK_URL, indirectClient));
        config.addAuthorizer(NAME, (context, store, prof) -> { throw new StatusAction(400); } );
        call();
        assertEquals(400, action.getCode());
        assertEquals(0, nbCall);
    }
Tests {@link DefaultSecurityLogic}.

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