int originalY = link.getLocation().y;
// The element is located at the bottom of the page,
// so it is not initially visible on the screen.
WebElement toFlick = driver.findElement(By.id("imagestart"));
int dy = -100;
Action flick = getBuilder(driver).flick(toFlick, 0, dy, speedNormal(dy)).build();
flick.perform();
int newY = link.getLocation().y;
// After flicking, the element should now be visible on the screen.
assertTrue(newY < originalY, "Expected y < " + originalY + ", but got y = " + newY);
}