protected LdapContext createInitialLdapContext(Properties properties, Control[] controls)
      throws NamingException {
    return new InitialLdapContext(properties, controls);
  }
Helper method to create the LDAP context needed to interact with the Active Directory.
<p/>
This is mainly used to help with building mocks for test cases.

@param properties environment used to create the initial DirContext.
                  Null indicates an empty environment.
@param controls   connection request controls for the initial context.
                  If null, no connection request controls are used.
@return the relevant LdapContext
@throws NamingException if a naming exception is encountered
ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/ADKerberosOperationHandler.java