@After
  public void deleteTable() throws Exception {
    try {
      String databaseName = (dbName == null) ? Warehouse.DEFAULT_DATABASE_NAME : dbName;

      client.dropTable(databaseName, tableName);
      // in case of external table, drop the table contents as well
      if (isTableExternal() && (externalTableLocation != null)) {
        Path extPath = new Path(externalTableLocation);
        FileSystem fileSystem = extPath.getFileSystem(new HiveConf());
        if (fileSystem.exists(extPath)) {
          fileSystem.delete(extPath, true);
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
      throw e;
    }
  }
Test constructor that sets the storage format class names provided by the test parameter.
hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/HCatMapReduceTest.java