### Question:
MonacoEditorDOMElement extends BaseDOMElement<String, MonacoEditorWidget> implements TakesValue<String>,
                                                                                                  Focusable { void setupInternalComponent() { final Style style = widget.getElement().getStyle(); style.setWidth(100, PCT); style.setHeight(100, PCT); makeMonacoEditorInitializer().require(onMonacoLoaded()); } MonacoEditorDOMElement(final MonacoEditorWidget widget,
                                  final GridLayer gridLayer,
                                  final GridWidget gridWidget,
                                  final SessionManager sessionManager,
                                  final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                  final Function<GridCellTuple, Command> hasNoValueCommand,
                                  final Function<GridCellValueTuple, Command> hasValueCommand); void setupElements(); @Override void initialise(final GridBodyCellRenderContext context); @Override void setValue(final String value); @Override String getValue(); @Override int getTabIndex(); @Override void setAccessKey(final char key); @Override void setFocus(final boolean focused); @Override void setTabIndex(final int index); @Override @SuppressWarnings("unchecked") void flush(final String value);  }### Answer:
@Test public void testSetupInternalComponent() { final MonacoEditorInitializer editorInitializer = mock(MonacoEditorInitializer.class); final Element element = mock(Element.class); final Style style = mock(Style.class); final Consumer<Monaco> onMonacoLoaded = m -> {}; doReturn(editorInitializer).when(domElement).makeMonacoEditorInitializer(); doReturn(onMonacoLoaded).when(domElement).onMonacoLoaded(); when(widget.getElement()).thenReturn(element); when(element.getStyle()).thenReturn(style); domElement.setupInternalComponent(); verify(style).setWidth(100, PCT); verify(style).setHeight(100, PCT); verify(editorInitializer).require(onMonacoLoaded); }