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 get the application context using the androidx.test.core.app.ApplicationProvider.getApplicationContext(). Cast that to your application and it should be the right context.
androidx.test.core.app.ApplicationProvider.getApplicationContext()