@Test
    public void testOneAuthorizerDoesNotExist() {
        final Map<String, Authorizer> authorizers = new HashMap<>();
        authorizers.put(NAME, new IdAuthorizer());
        TestsHelper.expectException(() -> checker.isAuthorized(null, new MockSessionStore(), profiles, VALUE, authorizers,
            new ArrayList<>()), TechnicalException.class, "The authorizer '" + VALUE + "' must be defined in the security configuration");
    }
Tests the {@link DefaultAuthorizationChecker}.

@author Jerome Leleu
@since 1.8.0
pac4j-core/src/test/java/org/pac4j/core/authorization/checker/DefaultAuthorizationCheckerTests.java