GridLienzoScrollHandler { void synchronizeScrollSize() { getInternalScrollPanel().setPixelSize(calculateInternalScrollPanelWidth(), calculateInternalScrollPanelHeight()); } GridLienzoScrollHandler(final GridLienzoPanel panel); void init(); Integer scrollbarWidth(); Integer scrollbarHeight(); void refreshScrollPosition(); void setBounds(final Bounds bounds);  }
@Test public void testSynchronizeScrollSize() { final AbsolutePanel panel = mock(AbsolutePanel.class); final Integer internalScrollPanelWidth = 42; final Integer internalScrollPanelHeight = 58; doReturn(internalScrollPanelWidth).when(gridLienzoScrollHandler).calculateInternalScrollPanelWidth(); doReturn(internalScrollPanelHeight).when(gridLienzoScrollHandler).calculateInternalScrollPanelHeight(); doReturn(panel).when(gridLienzoScrollHandler).getInternalScrollPanel(); gridLienzoScrollHandler.synchronizeScrollSize(); verify(panel).setPixelSize(eq(internalScrollPanelWidth), eq(internalScrollPanelHeight)); }