private void appendHushableRandomAccessFileAppender(Appender queryAppender) {
    HushableRandomAccessFileAppender hushableAppender;

    if((queryAppender!= null) && (queryAppender instanceof HushableRandomAccessFileAppender)) {
      hushableAppender = (HushableRandomAccessFileAppender) queryAppender;
      try {
        hushableAppender.append(new LocalLogEvent());
      } catch (Exception e) {
        Assert.fail("Exception is not expected while appending HushableRandomAccessFileAppender");
      }
    }
  }
Open a session, and create a table for cases usage

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