@Test
public void testReportCounters() throws Exception {

	elasticsearchReporter.reportMetrics(
			metricNameMap(Gauge.class),
			metricNameMap(name("web_sessions").build(), counter(123)),
			metricNameMap(Histogram.class),
			metricNameMap(Meter.class),
			metricNameMap(Timer.class));
	assertEquals(
			map("@timestamp", timestamp, Object.class)
					.add("name", "web_sessions")
					.add("app", "test")
					.add("count", 123),
			asMap(out));
}