title: Robolectric sensor event simulation
body: <p>I have a class that implements a SensorEventListener and listens for Accelerometer events:</p>
  
  <pre><code>public class MyListener implements SensorEventListener {
      @Override
      public void onSensorChanged(SensorEvent sensorEvent) {
  
      }
  
      @Override
      public void onAccuracyChanged(Sensor sensor, int i) {
  
      }
  }
  </code></pre>
  
  <p>I would like to test onSensorChanged method using Robolectric,</p>
  
  <p>any ideas as to how to achieve this?</p>