@Override
 public void cleanUp() throws Exception {
   // Depending on if we are running in the module or the parent
   // project, the target folder will be in a different location.
   // We don't want to nuke the entire target directory, unless only
   // the mini cluster is using it.
   // A reasonable check to keep things clean is to check for the existence
   // of ./target/classes and only delete the mini cluster temporary dir if true.
   // Delete the entire ./target if false
   if (new File("./target/classes").exists()) {
     FileUtils.deleteFolder("./target/" + testName);
   } else {
     FileUtils.deleteFolder("./target");
   }
 }
 @AfterClass
 public static void tearDown() throws Exception {
   hiveLocalMetaStore.stop();
   FileUtils.deleteFolder(
       new File(propertyParser.getProperty(ConfigVars.HIVE_TEST_TABLE_NAME_KEY))
           .getAbsolutePath());
 }
 @Override
 public void cleanUp() throws Exception {
   FileUtils.deleteFolder(kafkaTempDir);
 }