@Override
public TestResult runTestMethodRemote(String className, String methodName) {
Bundle bundle = null;
try {
Class<?> testClass = testClassLoader.loadTestClass(className);
BundleReference bundleRef = (BundleReference) testClass.getClassLoader();
bundle = bundleRef.getBundle();
} catch (ClassNotFoundException e) {
// ignore
}
BundleAssociation.setBundle(bundle);
BundleContextAssociation.setBundleContext(context);