GridLienzoScrollPosition { Double currentRelativeX() { final Double delta = deltaX(); return delta == 0d ? 0d : 100 * currentX() / delta; } GridLienzoScrollPosition(final GridLienzoScrollHandler gridLienzoScrollHandler);   }
@Test public void testGetCurrentXLevel() { final Double actualLevel = gridLienzoScrollPosition.currentRelativeX(); final Double expectedLevel = 100 * CURRENT_X / DELTA_X; assertEquals(expectedLevel, actualLevel, 0); }