MBeanSampler sampler = new MBeanSampler(0, 30000, "TEST") ;
MyPublisher publisher = new MyPublisher() ;
sampler.setPublisher(publisher);
sampler.addMBeanAttribute(BEAN_NAME, "Long", GMetricType.INT32,
"bytes", GMetricSlope.BOTH, "Longer");
sampler.run() ;
String value = publisher.getResult("Longer");
assertEquals( Example.LONG_VALUE, Long.valueOf(value ));
}
/**
* Test of attribute sample, type String