@Test
    public void buildSimpleObjectConfig() {
        final Authorizer authorizer = new IsAnonymousAuthorizer();
        final Matcher matcher = new PathMatcher();

        SecurityEndpointBuilder.buildConfig(endpoint, config, new MockDirectClient(KEY), authorizer, matcher);

        assertEquals(config, endpoint.getConfig());
        assertEquals(KEY, endpoint.getClients());
        assertAuthorizer(config, endpoint.getAuthorizers(), authorizer, 1);
        assertMatcher(config, endpoint.getMatchers(), matcher, 1);
    }
Tests {@link SecurityEndpointBuilder}.

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