@Test
  public void testBasicConnection() throws Exception {
    setupIDP(true, USER_PASS_MODE);
    try (TestHiveConnection connection = new TestHiveConnection(
        getSamlJdbcConnectionUrl(), new Properties(), USER1, USER1_PASSWORD)) {
      assertLoggedInUser(connection, USER1);
    }
    try (TestHiveConnection connection = new TestHiveConnection(
        getSamlJdbcConnectionUrl(), new Properties(), USER2, USER2_PASSWORD)) {
      assertLoggedInUser(connection, USER2);
    }
  }
Tests basic SSO connection using a user/password.
itests/hive-unit/src/test/java/org/apache/hive/service/auth/saml/TestHttpSamlAuthentication.java