// TODO check for dynamic attributes being passed and attached correctly
@Test
public void testCheckIfDynamicAttributesArePassedCorrectly() throws Exception {
TraceOutputJmxScanner scanner = perfmon.scanner("TEST",
new QueryDef("test", "test:type=TestJmx,*", "name").getAs("Nom", "ATTR")
.metric(
perfmon.metric("test", "test").dynamicAttrs("ATTR")));
ObjectInspector.setField(scanner, "output", out);
scanner.runCycle(100);
List<PerfSample> samples = ((PerfRecord) results.get(0)).getSamples();
Assert.assertNotNull(samples);
Assert.assertEquals(2, samples.size());