I\'m using the new Android Testing Support Library (com.android.support.test:runner:0.2) to run Instrumentation Tests
(a.k.a Device or Emulator Tests).
You may need InstrumentationRegistry.getContext() for access to raw resources of a test case.
E.g., to access app/src/androidTest/res/raw/resource_name.json in a TestCase:
final Context context = InstrumentationRegistry.getContext();
InputStream is = context.getResources().openRawResource(com.example.package.test.R.raw.resource_name);