@Test
    public void buildAllTypesWithoutConfig() {
        final Client client = new MockDirectClient(KEY);
        final Authorizer authorizer = new CheckHttpMethodAuthorizer();
        final Matcher matcher = new HttpMethodMatcher();

        SecurityEndpointBuilder.buildConfig(endpoint, client, authorizer, matcher);

        final Config config = endpoint.getConfig();
        assertNotNull(endpoint.getConfig());
        assertEquals(client, config.getClients().findClient(KEY).orElse(null));
        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