public final class PreferenceCheckingDeployPromptJUnitTest {
@Test
public void ensureAutomaticDeployWorks() {
ByPassedDeployPrompt adaptee = new ByPassedDeployPrompt();
BooleanPreference pref = createPreference(true);
PreferenceCheckingDeployPrompt prompt = new PreferenceCheckingDeployPrompt(adaptee, pref);
List<Source> dirty = Arrays.asList(new Source("S"));
assertTrue(prompt.prompt(null, dirty));
assertEquals(dirty, prompt.getDirtyItemsToDeploy());
adaptee.ensureNotCalled();