mbs.registerMBean(mbean, name);
}
@Test
public void testRun() {
JMXetricAgent a = null ;
try {
a = new JMXetricAgent();
XMLConfigurationService.configure(a, "host=localhost,port=8649,wireformat31x=true,config=src/test/resources/jmxetric_test.xml");
a.start();
Thread.sleep(5000);
GMetricResult.GMetricDetail floatResult = GMetricResult.getGMetric("ProcessName_TestExample_Float");
assertEquals( Float.toString( Example.FLOAT_VALUE) , floatResult.value);
assertEquals( "both", floatResult.slope);
// TODO Add asserts