@Test
  public void testGetStagingDir() throws Exception {
    Context ctx = new Context(conf);
    QB qb = new QB("", "", false);
    Path path = SemanticAnalyzer.getStagingDirectoryPathname(qb, conf, ctx);
    FileSystem fs = FileSystem.getLocal(conf);
    Assert.assertFalse(fs.exists(path.getParent()));
  }
Test that no staging directory is created for default behavior where the
directory location is on the local file system.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/parse/TestParseUtilsStagingDir.java