@Test
public void testReportCounters() throws Exception {

	influxDbReporter.reportMetrics(
			metricNameMap(Gauge.class),
			metricNameMap(name("web_sessions").build(), counter(123)),
			metricNameMap(Histogram.class),
			metricNameMap(Meter.class),
			metricNameMap(Timer.class));
	verify(httpClient).send(eq("POST"), eq("http://localhost:8086/write?precision=ms&db=stm"),
			eq(singletonList(format("web_sessions,app=test count=123i %d", timestamp))));
}