GridLienzoScrollHandler { MouseMoveHandler enablePointerEvents() { return event -> gridLienzoScrollUI().enablePointerEvents(getDomElementContainer()); } GridLienzoScrollHandler(final GridLienzoPanel panel); void init(); Integer scrollbarWidth(); Integer scrollbarHeight(); void refreshScrollPosition(); void setBounds(final Bounds bounds);  }
@Test public void testEnablePointerEvents() { final MouseMoveEvent mouseMoveEvent = mock(MouseMoveEvent.class); final AbsolutePanel domElementContainer = mock(AbsolutePanel.class); final GridLienzoScrollUI scrollUI = mock(GridLienzoScrollUI.class); doReturn(domElementContainer).when(gridLienzoPanel).getDomElementContainer(); doReturn(scrollUI).when(gridLienzoScrollHandler).gridLienzoScrollUI(); doNothing().when(scrollUI).disablePointerEvents(any()); gridLienzoScrollHandler.enablePointerEvents().onMouseMove(mouseMoveEvent); verify(scrollUI).enablePointerEvents(domElementContainer); }