### Question:
ViewAutoScroller extends AutoScroller { @Override public void scroll(@NonNull Point location) { mLastLocation = location; if (mOrigin == null) { mOrigin = location; if (VERBOSE) Log.v(TAG, "Origin @ " + mOrigin); } if (VERBOSE) Log.v(TAG, "Current location @ " + mLastLocation); mHost.runAtNextFrame(mRunner); } ViewAutoScroller(@NonNull ScrollHost scrollHost); @VisibleForTesting  ViewAutoScroller(@NonNull ScrollHost scrollHost, float scrollThresholdRatio); @Override void reset(); @Override void scroll(@NonNull Point location);  }### Answer:
@Test public void testNoScrollWhenOutOfScrollZone() { mScroller.scroll(new Point(0, VIEW_HEIGHT / 2)); mHost.run(); mHost.assertNotScrolled(); }
@Test public void testMotionThreshold() { mScroller.scroll(new Point(0, TOP_Y_POINT)); mHost.run(); mScroller.scroll(new Point(0, TOP_Y_POINT - 1)); mHost.run(); mHost.assertNotScrolled(); }