Metric { public double getTotal() { return total; } 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 testGetTotal() { double total = random.nextDouble(); Metric metric = new Metric(testName, 0, total, 0.0, 0.0, 0.0, 0.0); assertEquals(total, metric.getTotal(), 0.05); }