@Test
public void testOnCancelEvent() {

    CancelRequestEvent event = mock(CancelRequestEvent.class);
    when(event.getContext()).thenReturn(editWorkflow);
    presenter.onCancelEvent(event);
    verify(editWorkflow, times(1)).clear();
    verify(editWorkflow, times(0)).clearButtons();
    verify(editWorkflow, times(0)).showTestButton();
    verify(editWorkflow, times(0)).showNextButton();
    verify(editWorkflow, times(0)).showBackButton();
    verify(editWorkflow, times(0)).edit(any(DataSetDef.class), any(List.class));
    verify(errorPopupPresenter, times(0)).showMessage(anyString());
    verify(view, times(0)).setWidget(any(IsWidget.class));
}