title: How to rotate activity, I mean: screen orientation change using Espresso?
body: <p>I have decided that one of the testing criteria for my application tests with Google's Espresso is:<br/> </p>
  
  <blockquote>
    <p>Test should maintain Activity state after screen orientation rotation<br/></p>
  </blockquote>
  
  <p>How do I rotate the screen when using Espresso?</p>
  
  <p><br/> I have tried the following Robotium code (Yes I placed Robotium code in my Espresso test so sue me)</p>
  
  <pre><code>solo.setActivityOrientation(solo.LANDSCAPE);
  solo.setActivityOrientation(solo.PORTRAIT);
  </code></pre>
  
  <p>but It crashes the application when I run it within my Espresso test.<br/>
  Is there any way to do this?<br/></p>
  
  <p><strong>Thanks in advance for any help</strong></p>