HashMap<String, TestSet> classMethodCounts = new HashMap<String, TestSet>();
final DefaultConsoleReporter defaultConsoleReporter = new DefaultConsoleReporter( System.out );
RunListener reporter =
new ClassesParallelRunListener( classMethodCounts, reporterFactory, defaultConsoleReporter );
JUnitCoreRunListener runListener = new JUnitCoreRunListener( reporter, classMethodCounts );
RunStatistics result = runClasses( reporterFactory, runListener, classes );
assertReporter( result, success, ignored, failure, "classes" );
classMethodCounts.clear();
reporterFactory = createReporterFactory();
reporter = new MethodsParallelRunListener( classMethodCounts, reporterFactory, true, defaultConsoleReporter );