### Question:
LienzoCanvasView extends AbstractCanvasView<LienzoCanvasView> { @Override public LienzoCanvasView<L> setGrid(final CanvasGrid grid) { if (null != grid) { GridLayer gridLayer = LienzoGridLayerBuilder.getLienzoGridFor(grid); getLienzoPanel().setBackgroundLayer(gridLayer); } else { getLienzoPanel().setBackgroundLayer(null); } return this; } LienzoCanvasView();  LienzoCanvasView(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFactory); abstract L getLayer(); @Override LienzoCanvasView<L> add(final ShapeView<?> shape); @Override LienzoCanvasView<L> delete(final ShapeView<?> shape); @Override LienzoCanvasView<L> setGrid(final CanvasGrid grid); LienzoCanvasView<L> setDecoratorFactory(final BiFunction<Integer, Integer, IPrimitive<?>> decoratorFatory); @Override LienzoCanvasView<L> clear(); @Override Transform getTransform(); LienzoPanel getLienzoPanel();  }### Answer:
@Test public void testSetGrid() { tested.initialize(panel, settings); tested.setGrid(CanvasGrid.DEFAULT_GRID); verify(panel, times(1)).setBackgroundLayer(any(Layer.class)); }
@Test public void testRemoveGrid() { tested.initialize(panel, settings); tested.setGrid(null); verify(panel, times(1)).setBackgroundLayer(eq(null)); }