### Question:
IncludedModelsPageView implements IncludedModelsPagePresenter.View { @Override public void setGrid(final HTMLElement grid) { RemoveHelper.removeChildren(this.grid); this.grid.appendChild(grid); } @Inject  IncludedModelsPageView(final HTMLDivElement grid,
                                  final HTMLButtonElement includeModelButton,
                                  final @DMNEditor ReadOnlyProvider readOnlyProvider); @Override void init(final IncludedModelsPagePresenter presenter); @Override void setGrid(final HTMLElement grid); @EventHandler("include-model") void onIncludeModelButtonClick(final ClickEvent event);  }### Answer:
@Test public void testSetGrid() { final HTMLElement gridHTMLElement = mock(HTMLElement.class); final Element currentElement = mock(Element.class); grid.firstChild = currentElement; when(grid.removeChild(currentElement)).then(a -> { grid.firstChild = null; return currentElement; }); view.setGrid(gridHTMLElement); verify(grid).removeChild(currentElement); verify(grid).appendChild(gridHTMLElement); }