@Test
public void testZoom() {

  // Zoom in
  double delta = myScrollbar.getZoomWheelDelta();
  myUi.keyboard.press(FakeKeyboard.MENU_KEY); // Menu+wheel == zoom
  myUi.mouse.wheel(50, 50, -1);
  myTimer.tick(TimeUnit.SECONDS.toNanos(5));
  assertEquals(0 + delta * 0.5, myTimeline.getViewRange().getMin(), EPSILON);
  assertEquals(5000 - delta * 0.5, myTimeline.getViewRange().getMax(), EPSILON);
  // Zoom in twice
  double delta2 = myScrollbar.getZoomWheelDelta() * 2;
  myUi.mouse.wheel(50, 50, -2);
  myTimer.tick(TimeUnit.SECONDS.toNanos(5));
  assertEquals(0 + (delta + delta2) * 0.5, myTimeline.getViewRange().getMin(), EPSILON);
  assertEquals(5000 - (delta + delta2) * 0.5, myTimeline.getViewRange().getMax(), EPSILON);
  // Zoom out
  double delta3 = myScrollbar.getZoomWheelDelta();
  myUi.mouse.wheel(50, 50, 1);
  myTimer.tick(TimeUnit.SECONDS.toNanos(5));
  assertEquals(0 + (delta + delta2 - delta3) * 0.5, myTimeline.getViewRange().getMin(), EPSILON);
  assertEquals(5000 - (delta + delta2 - delta3) * 0.5, myTimeline.getViewRange().getMax(), EPSILON);
}