title: How can I get Application in espresso?
body: <p>I'm using espresso to add tests to my Android application.</p>
  
  <p>In my <code>TestActivity</code>, I have some views that are only visible when the user is signed. The <code>userIsSignedIn</code> flag is stored in <code>MyApp</code> which is a subclass of <code>android.app.Application</code>. Is there a way I can access an instance of <code>MyApp</code> within the test case?</p>
  
  <p>If not, what is alternative way to do this?</p>
  
  <p>Thanks</p>