@Override
    public Void call() throws Exception {
      for (int i = 0; i < iterations; i++) {
        try (TestHiveConnection connection = new TestHiveConnection(
            getSamlJdbcConnectionUrl(), new Properties(), user, password)) {
          assertLoggedInUser(connection, user);
        }
      }
      return null;
    }
Util class to issue multiple connection requests concurrently.
itests/hive-unit/src/test/java/org/apache/hive/service/auth/saml/TestHttpSamlAuthentication.java