@Test
  public void testMultipleAuthMethods() {
    Set<EntryForTest> entries = ImmutableSet.of(
        new EntryForTest("KERBEROS,SAML", HiveServer2TransportMode.binary, true),
        new EntryForTest("KERBEROS,SAML", HiveServer2TransportMode.http, false),
        new EntryForTest("KERBEROS,SAML,LDAP", HiveServer2TransportMode.all, true),
        new EntryForTest("KERBEROS,SAML,LDAP", HiveServer2TransportMode.http, false),
        new EntryForTest("KERBEROS,LDAP", HiveServer2TransportMode.all, false),
        new EntryForTest("NONE,SAML", HiveServer2TransportMode.all, true),
        new EntryForTest("NONE,SAML", HiveServer2TransportMode.http, true),
        new EntryForTest("NOSASL,SAML", HiveServer2TransportMode.all, true),
        new EntryForTest("SAML,LDAP,PAM,CUSTOM", HiveServer2TransportMode.http, true),
        new EntryForTest("SAML,OTHER", HiveServer2TransportMode.all, true),
        new EntryForTest("LDAP,PAM,CUSTOM", HiveServer2TransportMode.binary, true),
        new EntryForTest("KERBEROS,JWT", HiveServer2TransportMode.binary, true),
        new EntryForTest("KERBEROS,JWT", HiveServer2TransportMode.http, false),
        new EntryForTest("KERBEROS,JWT,LDAP", HiveServer2TransportMode.http, false),
        new EntryForTest("KERBEROS,JWT,LDAP", HiveServer2TransportMode.all, true),
        new EntryForTest("NONE,JWT", HiveServer2TransportMode.all, true),
        new EntryForTest("NOSASL,JWT", HiveServer2TransportMode.http, true),
        new EntryForTest("JWT,LDAP,PAM,CUSTOM", HiveServer2TransportMode.http, true),
        new EntryForTest("JWT,SAML,LDAP", HiveServer2TransportMode.http, false),
        new EntryForTest("JWT,SAML,LDAP", HiveServer2TransportMode.all, true),
        new EntryForTest("JWT,SAML", HiveServer2TransportMode.http, false),
        new EntryForTest("JWT,SAML", HiveServer2TransportMode.binary, true)
    );

    for (EntryForTest entry : entries) {
      verify(entry.authTypes, entry.mode, entry.shouldThrowException);
    }
  }
Tests to test if AuthType can parse allowed values and reject disallowed combinations.
service/src/test/org/apache/hive/service/auth/TestAuthType.java