### Question:
CellEditorControlsViewImpl implements CellEditorControlsView { @Override public void hide() { getActiveEditor().ifPresent(PopupEditorControls::hide); getActiveEditor().ifPresent(e -> removeOnClosedByKeyboardCallback(e)); setActiveEditor(Optional.empty()); } CellEditorControlsViewImpl(); @Inject  CellEditorControlsViewImpl(final Document document,
                                      final Div cellEditorControls,
                                      final Div cellEditorControlsContainer); Optional<PopupEditorControls> getActiveEditor(); void setActiveEditor(final Optional<PopupEditorControls> activeEditor); @PostConstruct void setup(); @PreDestroy void destroy(); @Override void show(final PopupEditorControls editor,
                     final int x,
                     final int y); @Override void hide(); static final String LEFT; static final String TOP; }### Answer:
@Test public void testHide() { final PopupEditorControls editor = mock(PopupEditorControls.class); final Optional<PopupEditorControls> activeEditor = Optional.of(editor); doReturn(activeEditor).when(view).getActiveEditor(); view.hide(); verify(editor).hide(); verify(view).removeOnClosedByKeyboardCallback(editor); verify(view).setActiveEditor(Optional.empty()); }