@Before
    public void setUp() {
        ldapServer = new LdapServer();
        ldapServer.start();
        val client = new LdapClient(ldapServer.getPort());
        authenticator = client.getAuthenticator();
        connectionFactory = client.getConnectionFactory();
    }
Tests the {@link LdapProfileService}.

@author Jerome Leleu
@since 1.8.0
pac4j-ldap/src/test/java/org/pac4j/ldap/profile/service/LdapProfileServiceTests.java