@Test
  public void testDirectUserMembershipGroupFilterPositive() {
    testCase = defaultBuilder()
        .userDNPatterns(
            "sAMAccountName=%s,ou=Engineering,dc=ad,dc=example,dc=com",
            "sAMAccountName=%s,ou=Management,dc=ad,dc=example,dc=com")
        .groupDNPatterns(
            "sAMAccountName=%s,ou=Teams,dc=ad,dc=example,dc=com",
            "sAMAccountName=%s,ou=Resources,dc=ad,dc=example,dc=com")
        .groupFilters(
            GROUP_TEAM1_NAME,
            GROUP_TEAM2_NAME,
            GROUP_RESOURCE1_NAME,
            GROUP_RESOURCE2_NAME)
        .guidKey("sAMAccountName")
        .userMembershipKey("memberOf")
        .build();

    testCase.assertAuthenticatePasses(ENGINEER_1.credentialsWithId());
    testCase.assertAuthenticatePasses(ENGINEER_2.credentialsWithId());
    testCase.assertAuthenticatePasses(MANAGER_1.credentialsWithId());
    testCase.assertAuthenticatePasses(MANAGER_2.credentialsWithId());
  }
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