GridHighlightHelper { public void highlight(final int row, final int column) { final double rowOffset = calculateRowOffset(row); final double columnOffset = calculateColumnOffset(column); final double y = applyPinnedGridConstraints(rowOffset); final double x = applyPinnedGridConstraints(columnOffset); highlightCell(row, column); select(row, column); moveCanvasTo(x, y); } 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 testHighlight() { doNothing().when(highlightHelper).moveCanvasTo(anyInt(), anyInt()); doNothing().when(highlightHelper).highlightCell(row, column); highlightHelper.highlight(row, column); verify(gridWidget).selectCell(row, column, false, false); verify(gridWidget).draw(); verify(highlightHelper).moveCanvasTo(-63, -126); }