@Override
  public HiveJdbcBrowserServerResponse getServerResponse() {
    if (tokenDelayMs > 0) {
      LOG.debug("Adding a delay of {} msec", tokenDelayMs);
      try {
        Thread.sleep(tokenDelayMs);
      } catch (InterruptedException e) {
        //ignored
      }
    }
    return super.getServerResponse();
  }
HTMLUnit based {@link IJdbcBrowserClient} for testing purposes.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/saml/SimpleSAMLPhpTestBrowserClient.java