@Test
    public void useAppContext() {
        // Context of the app under test.
        Context appContext = InstrumentationRegistry.getTargetContext();

        assertEquals("com.github.megatronking.netbare", appContext.getPackageName());
    }
Instrumented test, which will execute on an Android device.

@see <a href="http://d.android.com/tools/testing">Testing documentation</a>
netbare-sample/src/androidTest/java/com/github/megatronking/netbare/ExampleInstrumentedTest.java