ObjectName counterName = (ObjectName)it.next();
Object val = mbs.getAttribute(counterName, "NumInvocations");
assertEquals("Wrong Counters Number of Invocations", val, 2);
}
greeter.greetMeOneWay("hello");
assertEquals("The Counters are not create yet", 6, cr.getCounters().size());
counterNames = mbs.queryNames(name, null);
assertEquals("The Counters are not export to JMX ", 6 + 3, counterNames.size());
ObjectName greetMeOneWayCounter = new ObjectName(ManagementConstants.DEFAULT_DOMAIN_NAME