private Map<String, Double> testMetrics() {
    Map<String, Double> metrics = new HashMap<>();
    metrics.put(TezSessionPoolManagerMetrics.TEZ_SESSION_METRIC_RUNNING_TASKS, NO_OF_RUNNING_TASKS_PER_SESSION);
    metrics.put(TezSessionPoolManagerMetrics.TEZ_SESSION_METRIC_PENDING_TASKS, NO_OF_PENDING_TASKS_PER_SESSION);
    return metrics;
  }
This method tests the core metric calculation logic (refreshMetrics)
without involving the actual metric collection process.
ql/src/test/org/apache/hadoop/hive/ql/exec/tez/TestTezSessionPoolManagerMetrics.java