ScenarioGridWidget extends ResizeComposite { public void refreshContent(AbstractScesimModel abstractScesimModel) { scenarioGridPanel.getScenarioGrid().getModel().bindContent(abstractScesimModel); scenarioGridPanel.getScenarioGrid().getModel().refreshErrors(); onResize(); }  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 refreshContent() { scenarioGridWidget.refreshContent(simulationMock); verify(scenarioGridModelMock, times(1)).bindContent(eq(simulationMock)); verify(scenarioGridModelMock, times(1)).refreshErrors(); verify(scenarioGridWidget, times(1)).onResize(); }