ScenarioCellTextAreaDOMElement extends BaseDOMElement<String, TextArea> implements TakesValue<String>,
                                                                                                Focusable { @Override public void detach() { super.detach(); if (scenarioGridCell != null) { scenarioGridCell.setEditingMode(false); } } ScenarioCellTextAreaDOMElement(final TextArea widget,
                                          final GridLayer gridLayer,
                                          final GridWidget gridWidget); void init(); void setScenarioGridCell(ScenarioGridCell scenarioGridCell); @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 void flush(final String value); @Override void detach();  }
@Test public void testDetachCancelEditMode() { scenarioCellTextAreaDOMElementSpy.detach(); verify(scenarioGridCellMock).setEditingMode(false); }