@Test
    public void buildArray() {
        final Client[] clients = new Client[] {new MockDirectClient(KEY), new MockDirectClient(VALUE)};
        final Authorizer authorizer1 = new IsAnonymousAuthorizer();
        final Authorizer authorizer2 = new CheckHttpMethodAuthorizer();
        final Authorizer[] authorizers = new Authorizer[] {authorizer1, authorizer2};
        final Matcher matcher1 = new PathMatcher();
        final Matcher matcher2 = new HttpMethodMatcher();
        final Matcher[] matchers = new Matcher[] {matcher1, matcher2};

        SecurityEndpointBuilder.buildConfig(endpoint, config, clients, authorizers, matchers);

        assertEquals(config, endpoint.getConfig());
        assertAuthorizersAndMatchers(authorizer1, authorizer2, matcher1, matcher2);
    }
Tests {@link SecurityEndpointBuilder}.

@author Jerome LELEU
@since 5.5.0
pac4j-core/src/test/java/org/pac4j/core/util/security/SecurityEndpointBuilderTests.java