ShakeDetector implements SensorEventListener,IPermissionHandler { public void stop() { if (mSensorManager != null) { mSensorManager.unregisterListener(this); mSensorManager = null; } } ShakeDetector(@Nullable ShakeListener listener,@Nullable Config config); void start(@Nullable SensorManager manager); void stop(); @Override void onSensorChanged(SensorEvent event); @Override void onAccuracyChanged(Sensor sensor, int accuracy); @Override boolean isPermissionGranted(@NonNull Config config);  }
@Test public void stop() throws Exception { }