@Test
public void testReportTimers() throws Exception {

	elasticsearchReporter.reportMetrics(
			metricNameMap(Gauge.class),
			metricNameMap(Counter.class),
			metricNameMap(Histogram.class),
			metricNameMap(Meter.class),
			metricNameMap(name("response_time").build(), timer(400)));
	assertEquals(map("@timestamp", timestamp, Object.class)
					.add("name", "response_time")
					.add("app", "test")
					.add("count", 1)
					.add("m15_rate", 5.0)
					.add("m1_rate", 3.0)
					.add("m5_rate", 4.0)
					.add("mean_rate", 2.0)
					.add("max", 200.0 * DURATION_FACTOR)
					.add("mean", 400.0 * DURATION_FACTOR)
					.add("p50", 600.0 * DURATION_FACTOR)
					.add("min", 400.0 * DURATION_FACTOR)
					.add("p25", 0.0 * DURATION_FACTOR)
					.add("p75", 700.0 * DURATION_FACTOR)
					.add("p95", 800.0 * DURATION_FACTOR)
					.add("p98", 900.0 * DURATION_FACTOR)
					.add("p99", 1000.0 * DURATION_FACTOR)
					.add("p999", 1100.0 * DURATION_FACTOR)
					.add("std", 500.0 * DURATION_FACTOR),
			asMap(out));
}