@Test
public void testDumpedHistogram() {

	QueryScopeInfo info = new QueryScopeInfo.JobManagerQueryScopeInfo();
	MetricDump.HistogramDump hd = new MetricDump.HistogramDump(info, "hist", 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
	assertEquals("hist", hd.name);
	assertEquals(1, hd.min);
	assertEquals(2, hd.max);
	assertEquals(3, hd.mean, 0.1);
	assertEquals(4, hd.median, 0.1);
	assertEquals(5, hd.stddev, 0.1);
	assertEquals(6, hd.p75, 0.1);
	assertEquals(7, hd.p90, 0.1);
	assertEquals(8, hd.p95, 0.1);
	assertEquals(9, hd.p98, 0.1);
	assertEquals(10, hd.p99, 0.1);
	assertEquals(11, hd.p999, 0.1);
	assertEquals(info, hd.scopeInfo);
	assertEquals(METRIC_CATEGORY_HISTOGRAM, hd.getCategory());
}