title: Change orientation - something instead of sleep
body: <p>I'm trying make a test, which check behavior of my app after a lot of changed orientation.</p>
  
  <pre><code>  for (int i = 0; i &lt; 100; i++) {
              mActivityTestRule.getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
              Thread.sleep(3000);
              mActivityTestRule.getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
              Thread.sleep(3000);
          }
  </code></pre>
  
  <p>without <code>sleep</code> is too fast - my UI will not able to loaded everything before next change orientation.
  But ? Thread.sleep don't look good</p>
  
  <p>How to code this better? What I should do instead of tread sleep ?</p>