title: Android: how to get Context when testing with ActivityInstrumentationTestCase2?
body: <p>I'm running a junit test in Android which extends ActivityInstrumentationTestCase2. I'm using this on order to start up an activity. </p>
  
  <p>The activity uses a subclass of the application object to obtain some parameters. I get the application object from the context. </p>
  
  <p>Unfortunately, ActivityInstrumentationTestCase2 does not provide access to the context. Is there a way to access the context <em>before</em> getting the activity? </p>