@Test
    public void buildMultipleDifferentOrder() {
        final Authorizer authorizer1 = new IsAnonymousAuthorizer();
        final Authorizer authorizer2 = new CheckHttpMethodAuthorizer();

        final Matcher matcher1 = new PathMatcher();
        final Matcher matcher2 = new HttpMethodMatcher();

        SecurityEndpointBuilder.buildConfig(endpoint, config, authorizer1, matcher1,
            new MockDirectClient(KEY), matcher2, new MockDirectClient(VALUE), authorizer2);

        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