context.setImposteriser(ClassImposteriser.INSTANCE);
scriptCompilationHandlerMock = context.mock(ScriptCompilationHandler.class);
scriptRunnerFactoryMock = context.mock(ScriptRunnerFactory.class);
cacheRepositoryMock = context.mock(CacheRepository.class);
cacheMock = context.mock(PersistentCache.class);
testClassLoader = new URLClassLoader(new URL[0]);
testScriptFile = new File(tmpDir.getDir(), "script/mybuild.craidle");
cacheDir = new File(tmpDir.getDir(), "cache");
expectedScriptCacheDir = new TestFile(cacheDir, "Script").createDir();
expectedScriptRunner = context.mock(ScriptRunner.class);
scriptProcessor = new DefaultScriptCompilerFactory(scriptCompilationHandlerMock, scriptRunnerFactoryMock, cacheRepositoryMock);