ClassLoader mockLoader = null;
if ((classesToLoadByMockClassloader == null || classesToLoadByMockClassloader.length == 0) && !hasMockPolicyProvidedClasses(testClass)) {
mockLoader = Thread.currentThread().getContextClassLoader();
} else {
List<MockTransformer> mockTransformerChain = new ArrayList<MockTransformer>();
final MainMockTransformer mainMockTransformer = new MainMockTransformer();
mockTransformerChain.add(mainMockTransformer);
final UseClassPathAdjuster useClassPathAdjuster = testClass.getAnnotation(UseClassPathAdjuster.class);
mockLoader = AccessController.doPrivileged(new PrivilegedAction<MockClassLoader>() {
public MockClassLoader run() {
return new MockClassLoader(classesToLoadByMockClassloader, packagesToIgnore, useClassPathAdjuster);