LOG.debug(recs);
MetricsRecord r = recs.get(0);
assertEquals("name", expected, r.name());
assertEquals("tags", new MetricsTag[] {
new MetricsTag("context", "Metrics context", "test"),
new MetricsTag("hostName", "Local hostname", hostname)}, r.tags());
assertEquals("metrics", new Metric[] {
new MetricCounterLong("c1", "c1 desc", 1),
new MetricGaugeLong("g1", "g1 desc", 2),
new MetricCounterLong("s1_num_ops", "Number of ops for s1 desc", 1),
new MetricGaugeDouble("s1_avg_time", "Average time for s1 desc", 0)},