@Test
public void testShowError() {

    final ClientRuntimeError error = mock(ClientRuntimeError.class);
    when(error.getCause()).thenReturn("errorCause");
    presenter.afterPreviewCommand = mock(Command.class);
    presenter.showError(error);
    verify(loadingBox, times(1)).hide();
    verify(view, times(1)).showErrorNotification(any(SafeHtml.class));
    verify(errorEvent, times(1)).fire(any(ErrorEvent.class));
    verify(presenter.afterPreviewCommand, times(1)).execute();
    verify(view, times(0)).addConfigurationTabItemClickHandler(any(Command.class));
    verify(view, times(0)).addPreviewTabItemClickHandler(any(Command.class));
    verify(view, times(0)).addAdvancedTabItemClickHandler(any(Command.class));
    verify(view, times(0)).showConfigurationTab();
    verify(view, times(0)).showPreviewTab();
    verify(view, times(0)).showAdvancedTab();
    verify(view, times(0)).openColumnsFilterPanel(anyString());
    verify(view, times(0)).closeColumnsFilterPanel(anyString());
    verify(view, times(0)).clearErrorNotification();
}