(Integer)run.invoke(surefire, new Object[] {reports, testSuites.get(0), testSet, surefireClassLoader,
testsClassLoader, results, new Boolean(failIfNoTests)});
return result.intValue();
} catch (InvocationTargetException e) {
throw new SurefireExecutionException(e.getTargetException().getMessage(), e.getTargetException());
} catch (Exception e) {
throw new SurefireExecutionException("Unable to instantiate and execute Surefire", e);
} finally {
stop();
Thread.currentThread().setContextClassLoader(oldContextClassLoader);
}
}