### Question:
DMNGridHelper { public void clearSelections() { getGridWidgets().forEach(gridWidget -> highlightHelper(gridWidget).clearSelections()); } @Inject  DMNGridHelper(final SessionManager sessionManager); void highlightCell(final int row,
                              final int column,
                              final GridWidget gridWidget); void focusGridPanel(); void clearSelections(); void clearCellHighlights(); Set<GridWidget> getGridWidgets();  }### Answer:
@Test public void clearSelections() { when(defaultGridLayer.getGridWidgets()).thenReturn(asSet(gridWidget1, null, gridWidget2, null, gridWidget3)); doReturn(highlightHelper).when(helper).highlightHelper(gridWidget1); doReturn(highlightHelper).when(helper).highlightHelper(gridWidget2); doReturn(highlightHelper).when(helper).highlightHelper(gridWidget3); helper.clearSelections(); verify(highlightHelper, times(3)).clearSelections(); }