TerminalContainerViewImpl extends Composite implements TerminalContainerView { @Override public void removeWidget(@NotNull IsWidget terminal) { mainPanel.remove(terminal); } @Inject  TerminalContainerViewImpl(RunnerResources resources); @Override void setDelegate(ActionDelegate delegate); @Override void addWidget(@NotNull IsWidget terminal); @Override void removeWidget(@NotNull IsWidget terminal); @Override void setVisibleNoRunnerLabel(boolean isVisible);  }
@Test public void widgetShouldBeRemoved() { view.removeWidget(terminal); verify(view.mainPanel).remove(terminal); }