@Test
  public void testUserAndGroupSearchFilterPositive() throws Exception {
    testCase = defaultBuilder()
        .baseDN("ou=People,dc=example,dc=com")
        .userSearchFilter("(&(|(uid={0})(sAMAccountName={0}))(objectClass=person))")
        .guidKey("uid")
        .groupBaseDN("ou=Groups,dc=example,dc=com")
        .groupSearchFilter("(&(|(member={0})(member={1}))(&(|(cn=group1)(cn=group2))(objectClass=groupOfNames)))")
        .build();

    testCase.assertAuthenticatePasses(USER1.credentialsWithId());
    testCase.assertAuthenticatePasses(USER2.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