@VisibleForTesting
  public static void setMbeansParamsForTesting(boolean enableRegistration, boolean disableUnregistration) {
    enableMBeansRegistrationForTests = enableRegistration;
    disableMbeanUnregistrationForTests = disableUnregistration;
  }
Enable JMX tracking for testing.
@param enableRegistration enable registering MBeans.
@param disableUnregistration disable unregistering MBeans, so that value can be used by tests to validate.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/ReplLoadWork.java