I have an Activity that pulls an object from an Application extended class (application context) from within the OnCreate() method.
Activity
Application
OnCreate()
You can call the static method for the Context:
Context context = InstrumentationRegistry.getTargetContext();
More details can be found here: https://developer.android.com/training/testing/integration-testing/index.html