ScenarioGridWidget extends ResizeComposite { public void deselectAndUnFocus() { scenarioGridPanel.getScenarioGrid().deselect(); scenarioGridPanel.setFocus(false); selected = false; }  void setScenarioGridPanel(ScenarioGridPanel scenarioGridPanel); void setContent(AbstractScesimModel abstractScesimModel, ScenarioSimulationModel.Type type); ScenarioGridPanel getScenarioGridPanel(); ScenarioSimulationContext getScenarioSimulationContext(); void refreshContent(AbstractScesimModel abstractScesimModel); void unregister(); void clearSelections(); void resetErrors(); AbstractScesimGridModel getModel(); void selectAndFocus(); void deselectAndUnFocus(); boolean isSelected(); @Override void onResize();  }
@Test public void deselectAndUnFocus() { scenarioGridWidget.deselectAndUnFocus(); verify(scenarioGridMock, times(1)).deselect(); verify(scenarioGridPanelMock, times(1)).setFocus(eq(false)); assertFalse(scenarioGridWidget.selected); }