// use bundle to load the classes
Class clazz = context.getBundle().loadClass(testClass);
TestCase test = (TestCase) clazz.newInstance();
// wrap the test with the OsgiJUnitTestAdapter
OsgiJUnitTest osgiTest = new OsgiJUnitTestAdapter(test);
osgiTest.injectBundleContext(context);
return osgiTest;
}
catch (Exception ex) {
log.error("failed to invoke test execution", ex);