@Test
  public void testForwardedHeaders() throws Exception {
    verifyForwardedHeaders(new ArrayList<String>(Arrays.asList(IPStackUtils.resolveLoopbackAddress(),
        IPStackUtils.transformToIPv6("202.101.101.101"))), "show tables");
    verifyForwardedHeaders(new ArrayList<String>(Arrays.asList(
        IPStackUtils.transformToIPv6("202.101.101.101"))), "fs -ls /");
    verifyForwardedHeaders(new ArrayList<String>(), "show databases");
  }
Test if addresses in X-Forwarded-For are passed to HiveAuthorizer calls
@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftHttpCLIServiceFeatures.java