GridLienzoScrollPosition { Transform getTransform() { final Viewport viewport = getDefaultGridLayer().getViewport(); return viewport.getTransform(); } GridLienzoScrollPosition(final GridLienzoScrollHandler gridLienzoScrollHandler);   }
@Test public void testGetTransform() { final Viewport viewport = mock(Viewport.class); final Transform expectedTransform = mock(Transform.class); doReturn(viewport).when(defaultGridLayer).getViewport(); doReturn(expectedTransform).when(viewport).getTransform(); doCallRealMethod().when(gridLienzoScrollPosition).getTransform(); final Transform actualTransform = gridLienzoScrollPosition.getTransform(); assertEquals(expectedTransform, actualTransform); }