@Test
  public void testPasswordNotInLogs() throws Exception {
    String PASSWORD = "testpassword";
    TOpenSessionReq tOpenSessionReq = new TOpenSessionReq();
    tOpenSessionReq.setPassword(PASSWORD);
    assertFalse(tOpenSessionReq.toString().contains(PASSWORD));
  }
Ensures password isn't printed to logs from TOpenSessionReq.toString().
See maven-replacer-plugin code in service-rpc/pom.xml.

@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/service/cli/thrift/TestThriftCLIServiceSecurity.java