GridHighlightHelper { public void clearHighlight() { final GridWidget gridWidget = getGridWidget(); final GridRenderer renderer = gridWidget.getRenderer(); if (renderer instanceof BaseGridRenderer) { final BaseGridRenderer bgr = (BaseGridRenderer) renderer; bgr.clearCellHighlight(); gridWidget.draw(); } } GridHighlightHelper(final GridLienzoPanel gridPanel,
                               final GridWidget gridWidget); void highlight(final int row,
                          final int column); void clearSelections(); void clearHighlight(); GridHighlightHelper withPaddingX(final double paddingX); GridHighlightHelper withPaddingY(final double paddingY); GridHighlightHelper withPinnedGrid();  }
@Test public void testClearHighlight() { final BaseGridRenderer renderer = mock(BaseGridRenderer.class); when(gridWidget.getRenderer()).thenReturn(renderer); highlightHelper.clearHighlight(); verify(renderer).clearCellHighlight(); verify(gridWidget).draw(); }