private void setupUniqueTestPath() {
    String testBlobstorePath = new VariableSubstitution(new HiveVariableSource() {
      @Override
      public Map<String, String> getHiveVariable() {
        return null;
      }
    }).substitute(new HiveConf(), qt.getConf().get(HCONF_TEST_BLOBSTORE_PATH));

    testBlobstorePath = HiveTestEnvSetup.ensurePathEndsInSlash(testBlobstorePath);
    testBlobstorePath += HiveTestEnvSetup.ensurePathEndsInSlash(this.getClass().getSimpleName()); // name of child class
    String uid = new SimpleDateFormat("yyyyMMdd.HHmmss.SSS").format(Calendar.getInstance().getTime())
        + "-" + String.format("%03d", (int)(Math.random() * 999));
    testBlobstorePathUnique = testBlobstorePath + uid;

    qt.getQOutProcessor().addPatternWithMaskComment(testBlobstorePathUnique,
        String.format("### %s ###", HCONF_TEST_BLOBSTORE_PATH));
  }
Generates a unique test path for this particular CliDriver in the following form:
  ${test.blobstore.path}/CoreBlobstore[Negative]CliDriver/20160101.053046.332-{random number 000-999}
20160101.053046.332 represents the current datetime:
  {year}{month}{day}.{hour}{minute}{second}.{millisecond}
Random integer 000-999 included to avoid collisions when two test runs are started at the same millisecond with
 the same ${test.blobstore.path} (possible if test runs are controlled by an automated system)
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/AbstractCoreBlobstoreCliDriver.java