Assert.assertNotNull(samples);
Assert.assertEquals(2, samples.size());
for (PerfSample sample : samples) {
Assert.assertTrue("Should have non-zero metric ID", sample.getMetricId() > 0);
Metric metric = agentInstance.getMetricsRegistry().getMetric(sample.getMetricId());
Assert.assertTrue("Template should have non-zero metric ID", metric.getTemplate().getId() > 0);
}
}