I have an Activity that pulls an object from an Application extended class (application context) from within the OnCreate() method.
Activity
Application
OnCreate()
In kotlin val context = InstrumentationRegistry.getInstrumentation().context worked for me.
val context = InstrumentationRegistry.getInstrumentation().context