### Question:
ExpressionEditorViewImpl implements ExpressionEditorView { protected void setupGridPanel() { final Transform transform = new Transform().scale(VP_SCALE); gridPanel.getElement().setId("dmn_container_" + com.google.gwt.dom.client.Document.get().createUniqueId()); gridPanel.getViewport().setTransform(transform); final BaseGridWidgetKeyboardHandler handler = new BaseGridWidgetKeyboardHandler(gridLayer); addKeyboardOperation(handler, new KeyboardOperationEditCell(gridLayer)); addKeyboardOperation(handler, new KeyboardOperationEscapeGridCell(gridLayer)); addKeyboardOperation(handler, new KeyboardOperationMoveLeft(gridLayer, gridPanel)); addKeyboardOperation(handler, new KeyboardOperationMoveRight(gridLayer, gridPanel)); addKeyboardOperation(handler, new KeyboardOperationMoveUp(gridLayer, gridPanel)); addKeyboardOperation(handler, new KeyboardOperationMoveDown(gridLayer, gridPanel)); addKeyboardOperation(handler, new KeyboardOperationInvokeContextMenuForSelectedCell(gridLayer)); gridPanel.addKeyDownHandler(handler); gridPanelContainer.clear(); gridPanelContainer.setWidget(gridPanel); } ExpressionEditorViewImpl(); @Inject  ExpressionEditorViewImpl(final Anchor returnToLink,
                                    final Span expressionName,
                                    final Span expressionType,
                                    final @DMNEditor DMNGridPanelContainer gridPanelContainer,
                                    final TranslationService translationService,
                                    final ListSelectorView.Presenter listSelector,
                                    final SessionManager sessionManager,
                                    final SessionCommandManager<AbstractCanvasHandler> sessionCommandManager,
                                    final @DMNEditor DefaultCanvasCommandFactory canvasCommandFactory,
                                    final @DMNEditor Supplier<ExpressionEditorDefinitions> expressionEditorDefinitionsSupplier,
                                    final Event<RefreshFormPropertiesEvent> refreshFormPropertiesEvent,
                                    final Event<DomainObjectSelectionEvent> domainObjectSelectionEvent); @Override void init(final ExpressionEditorView.Presenter presenter); @Override void bind(final DMNSession session); @Override void setReturnToLinkText(final String text); @Override void setExpression(final String nodeUUID,
                              final HasExpression hasExpression,
                              final Optional<HasName> hasName,
                              final boolean isOnlyVisualChangeAllowed); ExpressionContainerGrid getExpressionContainerGrid(); @Override void setExpressionNameText(final Optional<HasName> hasName); @Override void setExpressionTypeText(final Optional<Expression> expression); @Override void onResize(); @Override void refresh(); @Override void setFocus();  }### Answer:
@Test public void testSetupGridPanel() { verify(viewport).setTransform(transformArgumentCaptor.capture()); final Transform transform = transformArgumentCaptor.getValue(); assertEquals(ExpressionEditorViewImpl.VP_SCALE, transform.getScaleX(), 0.0); assertEquals(ExpressionEditorViewImpl.VP_SCALE, transform.getScaleY(), 0.0); verify(gridPanel).addKeyDownHandler(any(BaseGridWidgetKeyboardHandler.class)); verify(gridPanelContainer).clear(); verify(gridPanelContainer).setWidget(gridPanel); verify(view, times(7)).addKeyboardOperation(any(BaseGridWidgetKeyboardHandler.class), keyboardOperationArgumentCaptor.capture()); final List<KeyboardOperation> operations = keyboardOperationArgumentCaptor.getAllValues(); assertThat(operations.get(0)).isInstanceOf(KeyboardOperationEditCell.class); assertThat(operations.get(1)).isInstanceOf(KeyboardOperationEscapeGridCell.class); assertThat(operations.get(2)).isInstanceOf(KeyboardOperationMoveLeft.class); assertThat(operations.get(3)).isInstanceOf(KeyboardOperationMoveRight.class); assertThat(operations.get(4)).isInstanceOf(KeyboardOperationMoveUp.class); assertThat(operations.get(5)).isInstanceOf(KeyboardOperationMoveDown.class); assertThat(operations.get(6)).isInstanceOf(KeyboardOperationInvokeContextMenuForSelectedCell.class); }