DataSetSummary implements IsWidget { void showErrorIcon() { view.showSizePanelIcon(IconType.EXCLAMATION_TRIANGLE, DataSetExplorerConstants.INSTANCE.error(), ICON_COLOR_ERROR, false); } @Inject  DataSetSummary(final DataSetClientServices clientServices, 
                          final Event<ErrorEvent> errorEvent, 
                          final View view); @PostConstruct void init(); @Override Widget asWidget(); void show(final DataSetDef def);  }
@Test public void testShowErrorIcon() { presenter.showErrorIcon(); verify(view, times(0)).init(presenter); verify(view, times(0)).showStatusPanel(anyBoolean(), anyBoolean(), anyBoolean()); verify(view, times(1)).showSizePanelIcon(any(IconType.class), anyString(), anyString(), anyBoolean()); verify(view, times(0)).showSizePanel(anyString(), anyString()); }