final Class<?> powerMockTestListenerArrayType = Class.forName(PowerMockTestListener[].class.getName(), false,
classLoader);
final Class<?> delegateClass = Class.forName(runnerDelegateImplementationType.getName(), false, classLoader);
Constructor<?> con = delegateClass.getConstructor(new Class[] { Class.class, String[].class,
powerMockTestListenerArrayType });
final PowerMockJUnitRunnerDelegate newInstance = (PowerMockJUnitRunnerDelegate) con.newInstance(new Object[] {
testClassLoadedByMockedClassLoader, methodNames.toArray(new String[0]),
getPowerMockTestListenersLoadedByASpecificClassLoader(testClass, classLoader) });
return newInstance;
}