HistoryPresenter implements HistoryPanel, RunnerWidget.ActionDelegate, HistoryView.ActionDelegate { @Override public void go(@NotNull AcceptsOneWidget container) { container.setWidget(view); } @Inject  HistoryPresenter(HistoryView view,
                            WidgetFactory widgetFactory,
                            SelectionManager selectionManager,
                            RunnerManagerView runnerManager,
                            ConsoleContainer consolePresenter,
                            TerminalContainer terminalContainer); @Override void addRunner(@NotNull Runner runner); @Override void update(@NotNull Runner runner); @Override void selectRunner(@NotNull Runner runner); @Override void clear(); @NotNull @Override IsWidget getView(); @Override void setVisible(boolean visible); @Override void go(@NotNull AcceptsOneWidget container); @Override boolean isRunnerExist(@NotNull Runner runner); @Override void removeRunnerWidget(@NotNull Runner runner); @Override void cleanInactiveRunners();  }
@Test public void shouldGoContainer() { AcceptsOneWidget container = mock(AcceptsOneWidget.class); historyPresenter.go(container); verify(container).setWidget(view); }