@Test
  public void testTimedAverageMetricsBigData() {
    long currentTime = System.nanoTime();
    // Data range in metrics from [0 / 250s] till [14999 / (1000s - 50ms)]
    TimedAverageMetrics metrics = generateTimedAverageMetrics(15000,
        10L * 60L * 1000L * 1000L * 1000L, 20000, -5000, 1, currentTime, 50L * 1000L * 1000L);

    // Checking value from [3000/600s] - [14999/1000s] -> 8999.5
    assertEquals("Checking the calculated value", 9000, metrics.value(currentTime + 50L * 1000L * 1000L * 20000L));
  }
Check for the maximum expected amount of data for TimedAverageMetrics.
15000 data point / 10 minute window / data every 50 ms.
llap-server/src/test/org/apache/hadoop/hive/llap/metrics/TestLlapDaemonExecutorMetrics.java