title: Espresso - how to get current activity to test Fragments?
body: <p>I have been playing around with <code>Espresso</code> tests for couple weeks now and I finally decided to start testing Fragments. </p>
  
  <p>Immediately I ran into a problem, how do I get current activity? </p>
  
  <p>My app uses data from login so I can't launch the activity with test rule.
   Simply put, is there something similar to <code>getActivity()</code> when doing espresso tests?</p>