CollectionEditorDOMElement extends BaseDOMElement<String, CollectionViewImpl> implements TakesValue<String>,
                                                                                                      Focusable { protected void internalFlush(final String value) { final int rowIndex = context.getRowIndex(); final int columnIndex = context.getColumnIndex(); ((ScenarioGrid) gridWidget).getEventBus().fireEvent(new SetGridCellValueEvent(((ScenarioGrid) gridWidget).getGridWidget(), rowIndex, columnIndex, value)); } CollectionEditorDOMElement(final CollectionViewImpl widget,
                                      final GridLayer gridLayer,
                                      final GridWidget gridWidget); void setScenarioGridCell(ScenarioGridCell scenarioGridCell); void stopEditingMode(); @Override void initialise(final GridBodyCellRenderContext context); @Override String getValue(); @Override void setValue(final String value); @Override int getTabIndex(); @Override void setTabIndex(final int index); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override @SuppressWarnings("unchecked") void flush(final String value);  }
@Test public void internalFlush() { final String newValue = "New Value"; collectionEditorDOMElementSpy.internalFlush(newValue); verify(eventBusMock, times(1)).fireEvent(isA(SetGridCellValueEvent.class)); }