ConsoleContainerViewImpl extends Composite implements ConsoleContainerView { @Override public void showWidget(@NotNull IsWidget console) { mainPanel.setWidget(console); } @Inject  ConsoleContainerViewImpl(RunnerResources resources,
                                    PartStackUIResources buttonIcons,
                                    ConsoleButtonFactory consoleButtonFactory,
                                    RunnerLocalizationConstant locale); @Override void setDelegate(ActionDelegate delegate); @Override void showWidget(@NotNull IsWidget console); @Override void removeWidget(@NotNull IsWidget console); @Override void selectWrapTextButton(boolean isChecked); @Override void setVisibleNoRunnerLabel(boolean visible);  }
@Test public void shouldShowWidget() { IsWidget console = mock(IsWidget.class); view.showWidget(console); verify(view.mainPanel).setWidget(console); }