private void errorIfNotSetup() {
    if (isSetup) {
      return;
    }
    String msg = "function called on MiniCluster that has been shutdown";
    throw new RuntimeException(msg);
  }
Throw RunTimeException if isSetup is false
hcatalog/core/src/test/java/org/apache/hive/hcatalog/MiniCluster.java