final GradleInternal gradle = context.mock(GradleInternal.class);
final SettingsLocation settingsLocation = new SettingsLocation(settingsDir, new File("foo"));
PropertiesLoadingSettingsProcessor processor = new PropertiesLoadingSettingsProcessor(delegate, propertiesLoader);
final ClassLoaderScope classLoaderScope = new RootClassLoaderScope(urlClassLoader, new DummyClassLoaderCache());
context.checking(new Expectations() {{
one(propertiesLoader).loadProperties(settingsDir);
one(delegate).process(gradle, settingsLocation, classLoaderScope, startParameter);
will(returnValue(settings));