@Test
  public void testDirectUserMembershipGroupFilterNegativeWithWrongGroupClassKey() throws Exception {
    testCase = defaultBuilder()
        .userDNPatterns("sAMAccountName=%s,ou=Administration,dc=ad,dc=example,dc=com")
        .groupDNPatterns("cn=%s,ou=Administration,dc=ad,dc=example,dc=com")
        .groupFilters(GROUP_ADMINS_NAME)
        .guidKey("sAMAccountName")
        .userMembershipKey("memberOf")
        .groupClassKey("wrongClass")
        .build();

    testCase.assertAuthenticateFails(ADMIN_1.credentialsWithId());
    testCase.assertAuthenticateFails(ENGINEER_1.credentialsWithId());
    testCase.assertAuthenticateFails(MANAGER_1.credentialsWithDn());
  }
Test to test the LDAP Atn to use a custom LDAP query that returns
   a) A set of group DNs
   b) A combination of group(s) DN and user DN
   LDAP atn is expected to extract the members of the group using the attribute value for
   "hive.server2.authentication.ldap.groupMembershipKey"
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestLdapAtnProviderWithMiniDS.java