Metric { public double getAverage() { return mean; } Metric(String name, int count, double total, double low, double high, double mean, double stddev); String getMetricName(); double getLowValue(); double getHighValue(); double getAverage(); double getStandardDeviation(); int getCount(); double getTotal();  }
@Test public void testGetAverage() { double mean = random.nextDouble(); Metric metric = new Metric(testName, 0, 0.0, 0.0, 0.0, mean, 0.0); assertEquals(mean, metric.getAverage(), 0.05); }