final GradleInternal gradle = context.mock(GradleInternal.class);
final SettingsLocation settingsLocation = new SettingsLocation(settingsDir, settingsScriptSource);
PropertiesLoadingSettingsProcessor processor = new PropertiesLoadingSettingsProcessor(delegate);
context.checking(new Expectations() {{
one(propertiesLoader).loadProperties(settingsDir, startParameter);
one(delegate).process(gradle, settingsLocation, urlClassLoader, startParameter, propertiesLoader);
will(returnValue(settings));
}});