### Question:
SidewaysShoveGestureDetector extends
  ProgressiveGesture<SidewaysShoveGestureDetector.OnSidewaysShoveGestureListener> { boolean isAngleAcceptable() { MultiFingerDistancesObject distancesObject = pointersDistanceMap.get(new PointerDistancePair(pointerIdList.get(0), pointerIdList.get(1))); double angle = Math.toDegrees(Math.abs(Math.atan2( distancesObject.getCurrFingersDiffY(), distancesObject.getCurrFingersDiffX()))); angle = Math.abs(angle - 90); return angle <= maxShoveAngle; } SidewaysShoveGestureDetector(Context context, AndroidGesturesManager gesturesManager); float getDeltaPixelsSinceStart(); float getDeltaPixelSinceLast(); float getPixelDeltaThreshold(); void setPixelDeltaThreshold(float pixelDeltaThreshold); void setPixelDeltaThresholdResource(@DimenRes int pixelDeltaThresholdDimen); float getMaxShoveAngle(); void setMaxShoveAngle(float maxShoveAngle);  }### Answer:
@Test public void isAngleAcceptableTest() { gestureDetector.pointerIdList.add(0); gestureDetector.pointerIdList.add(1); gestureDetector.pointersDistanceMap.put( new PointerDistancePair(0, 1), new MultiFingerDistancesObject(0, 300, 15, 275) ); assertTrue(gestureDetector.isAngleAcceptable()); gestureDetector.pointerIdList.clear(); gestureDetector.pointersDistanceMap.clear(); gestureDetector.pointerIdList.add(0); gestureDetector.pointerIdList.add(1); gestureDetector.pointersDistanceMap.put( new PointerDistancePair(0, 1), new MultiFingerDistancesObject(0, 300, 150, 275) ); assertFalse(gestureDetector.isAngleAcceptable()); }