private static Credentials validSessionCredentials() {
    Credentials credentials = new Credentials();
    Token<LlapTokenIdentifier> sessionToken =
        new Token<>("foo".getBytes(), "bar".getBytes(), new Text("kind"), new Text("service"));
    TokenCache.setSessionToken(sessionToken, credentials);
    return credentials;
  }
Tests for the log4j configuration of the LLAP daemons.
llap-server/src/test/org/apache/hadoop/hive/llap/daemon/impl/TestLlapDaemonLogging.java