GridLienzoScrollBounds { Boolean hasVisibleBounds() { final Viewport viewport = getDefaultGridLayer().getViewport(); return Optional.ofNullable(viewport).isPresent(); } GridLienzoScrollBounds(final GridLienzoScrollHandler GridLienzoScrollHandler);   }
@Test public void testHasVisibleBoundsWhenViewportIsNull() { doReturn(null).when(gridLienzoScrollHandler).getViewport(); assertFalse(gridLienzoScrollBounds.hasVisibleBounds()); }