private Map<String, LlapMetrics> generateClusterMetrics() {
    Map<String, LlapMetrics> data = new HashMap<>(4);
    data.put("0", generateSingleNodeMetrics(3000, 1000, 7, 10));
    data.put("1", generateSingleNodeMetrics(3000, 1000, 7, 10));
    data.put("2", generateSingleNodeMetrics(3000, 1000, 7, 10));
    data.put("3", generateSingleNodeMetrics(3000, 2000, 5, 10));
    return data;
  }
Test class to test BlacklistingLlapMetricsListener object.
llap-tez/src/test/org/apache/hadoop/hive/llap/tezplugins/metrics/TestBlacklistingLlapMetricsListener.java