@Test
public void testReportHistograms() throws Exception {

	influxDbReporter.reportMetrics(
			metricNameMap(Gauge.class),
			metricNameMap(Counter.class),
			metricNameMap(name("histogram").build(), histogram(400)),
			metricNameMap(Meter.class),
			metricNameMap(Timer.class));
	verify(httpClient).send(eq("POST"), eq("http://localhost:8086/write?precision=ms&db=stm"),
			eq(singletonList(format("histogram,app=test count=1i,min=400,max=200,mean=400.0,p50=600.0,std=500.0,p25=0.0,p75=700.0,p95=800.0,p98=900.0,p99=1000.0,p999=1100.0 %d", timestamp))));
}