I'm writing JUnit tests for some of my methods. One of these methods accesses a string resource using `App.getContext().getString(...)`, but `App.getContext()` is `null` when running my JUnit test. I have looked into [InstrumentationRegistry](https://developer.android.com/reference/android/support/test/InstrumentationRegistry.html) (which replaces the deprecated `AndroidTestCase`), but this just gives me a context I can use inside of my test. I need to be able to use a context in the method I'm calling. I would rather not have to add a parameter to the method to pass in context just for this test.

**Is there an easy way that I can fake a context in my test or another way to access the string resource?**