title: Why is Espresso's registerIdlingResources deprecated, and what replaces it?
body: <p>I'm working on UI tests with Espresso for Android, and following the Google's <a href="https://github.com/googlesamples/android-testing/blob/master/ui/espresso/IdlingResourceSample/app/src/androidTest/java/com/example/android/testing/espresso/IdlingResourceSample/ChangeTextBehaviorTest.java" rel="noreferrer">code sample</a> it is used, even though it's deprecated. So my questions are:</p>
  
  <ul>
  <li>why is it deprecated?</li>
  <li>what replaces it?</li>
  </ul>