MockTestRunner.add(new TestIntegerCommand());
MBeanServer mbeanServer = getMBeanServer();
JMXTestRunner jmxTestRunner = new JMXTestTestRunner(null);
jmxTestRunner.setExposedTestRunnerForTest(new MockTestRunner());
ObjectName oname = jmxTestRunner.registerMBean(mbeanServer);
try
{
JMXMethodExecutor executor = new JMXMethodExecutor(mbeanServer, new TestCommandCallback(results));