expectedStartParams.setGradleUserHomeDir(tmpDir.createDir("gradleUserHome"));
gradleLauncher = new DefaultGradleLauncher(gradleMock, initscriptHandlerMock, settingsHandlerMock,
gradlePropertiesLoaderMock, buildLoaderMock, buildConfigurerMock, buildBroadcaster, exceptionAnalyserMock, loggingManagerMock);
context.checking(new Expectations() {
{
allowing(gradlePropertiesLoaderMock).getGradleProperties();
will(returnValue(testGradleProperties));
allowing(settingsMock).getRootProject();
will(returnValue(expectedRootProjectDescriptor));