protected String getLdif(final String user) {
        val baseDn = casProperties.getAuthn().getLdap().getFirst().getBaseDn();
        return String.format("dn: cn=%s,%s%n"
            + "objectClass: top%n"
            + "objectClass: person%n"
            + "objectClass: organizationalPerson%n"
            + "objectClass: inetOrgPerson%n"
            + "cn: %s%n"
            + "homePostalAddress;lang-jp: address japan%n"
            + "homePostalAddress;lang-fr: 34 rue de Seine%n"
            + "userPassword: password%n"
            + "sn: %s%n"
            + "uid: %s%n", user, baseDn, user, user, user);
    }
Unit test for {@link LdapAuthenticationHandler}.

@author Marvin S. Addison
@author Misagh Moayyed
@since 4.0.0
support/cas-server-support-ldap/src/test/java/org/apereo/cas/authentication/OpenLdapAuthenticationHandlerTests.java