GridLienzoScrollHandler { void setScrollBarsPosition(final Double xPercentage, final Double yPercentage) { scrollBars().setHorizontalScrollPosition(xPercentage); scrollBars().setVerticalScrollPosition(yPercentage); } GridLienzoScrollHandler(final GridLienzoPanel panel); void init(); Integer scrollbarWidth(); Integer scrollbarHeight(); void refreshScrollPosition(); void setBounds(final Bounds bounds);  }
@Test public void testSetScrollBarsPosition() { final GridLienzoScrollBars scrollBars = mock(GridLienzoScrollBars.class); final Double xPercentage = 42d; final Double yPercentage = 58d; doReturn(scrollBars).when(gridLienzoScrollHandler).scrollBars(); gridLienzoScrollHandler.setScrollBarsPosition(xPercentage, yPercentage); verify(scrollBars).setHorizontalScrollPosition(xPercentage); verify(scrollBars).setVerticalScrollPosition(yPercentage); }