@Test
public void ensureNonAutomaticDeployWorks() {
BooleanPreference pref = createPreference(false);
Redlight redlight = new Redlight();
PreferenceCheckingDeployPrompt prompt = new PreferenceCheckingDeployPrompt(redlight, pref);
List<Source> dirty = Arrays.asList(new Source("S"));
assertFalse(prompt.prompt(null, dirty));
redlight.ensureCalled();
Greenlight greenlight = new Greenlight();
prompt = new PreferenceCheckingDeployPrompt(greenlight, pref);
assertTrue(prompt.prompt(null, dirty));