GridLienzoScrollBounds { Bounds getVisibleBounds() { return getDefaultGridLayer().getVisibleBounds(); } GridLienzoScrollBounds(final GridLienzoScrollHandler GridLienzoScrollHandler);   }
@Test public void testGetVisibleBounds() { final DefaultGridLayer defaultGridLayer = mock(DefaultGridLayer.class); final Bounds expectedBounds = mock(Bounds.class); doReturn(expectedBounds).when(defaultGridLayer).getVisibleBounds(); doReturn(defaultGridLayer).when(gridLienzoScrollBounds).getDefaultGridLayer(); final Bounds actualBounds = gridLienzoScrollBounds.getVisibleBounds(); assertEquals(expectedBounds, actualBounds); }