public String onCancelOption() {
        return hasCancelTask() ? getTask().getTypeForDisplay() : "";
    }
@Test
    public void shouldReturnTheOnCancelOptionBasedOnWhatTheOnCancelTaskIs() {
        assertThat(new OnCancelConfig().onCancelOption(), is(""));
        assertThat(new OnCancelConfig(new ExecTask()).onCancelOption(), is("Custom Command"));
        assertThat(new OnCancelConfig(new AntTask()).onCancelOption(), is("Ant"));
        assertThat(new OnCancelConfig(new RakeTask()).onCancelOption(), is("Rake"));
    }