private LlapMetrics generateSingleNodeMetrics(long totalRequests, long averageResponseTime,
      long availableExecutors, long allExecutors) {
    Map<String, Long> metricsMap = new HashMap<>(4);
    metricsMap.put(LlapDaemonExecutorInfo.ExecutorTotalRequestsHandled.name(), totalRequests);
    metricsMap.put(LlapDaemonExecutorInfo.AverageResponseTime.name(), averageResponseTime);
    metricsMap.put(LlapDaemonExecutorInfo.ExecutorNumExecutorsAvailableAverage.name(), availableExecutors);
    metricsMap.put(LlapDaemonExecutorInfo.ExecutorNumExecutors.name(), allExecutors);
    return new LlapMetrics(0, metricsMap);
  }
Test class to test BlacklistingLlapMetricsListener object.
llap-tez/src/test/org/apache/hadoop/hive/llap/tezplugins/metrics/TestBlacklistingLlapMetricsListener.java