@Test
  public void testConcurrentConnections() throws Exception {
    setupIDP(true, USER_PASS_MODE);
    ExecutorService executorService = Executors.newFixedThreadPool(3);
    List<Future<Void>> futures = new ArrayList<>();
    futures.add(executorService
        .submit(new TestHiveConnectionCallable(USER1, USER1_PASSWORD, 11)));
    futures.add(executorService
        .submit(new TestHiveConnectionCallable(USER2, USER2_PASSWORD, 17)));
    futures.add(executorService
        .submit(new TestHiveConnectionCallable(USER3, USER3_PASSWORD, 13)));
    for (Future<Void> f : futures) {
      f.get();
    }
  }
Tests multiple concurrent SSO connections. Make sure that the logged in user is same
as the one which is provided in the credentials.
itests/hive-unit/src/test/java/org/apache/hive/service/auth/saml/TestHttpSamlAuthentication.java