JMXTestRunner jmxTestRunner = new JMXTestRunner(null);
ObjectName oname = jmxTestRunner.registerMBean(mbeanServer);
try
{
JMXTestRunnerMBean testRunner = getMBeanProxy(mbeanServer, oname, JMXTestRunnerMBean.class);
TestResult result = testRunner.runTestMethodLocal(DummyTestCase.class.getName(), "testMethod");
assertNotNull("TestResult not null", result);
assertNotNull("Status not null", result.getStatus());
if (result.getStatus() == Status.FAILED)
throw result.getThrowable();