packagecom.ydl.ydlnet;importandroid.content.Context;importandroid.support.test.InstrumentationRegistry;importandroid.support.test.runner.AndroidJUnit4;importorg.junit.Test;importorg.junit.runner.RunWith;importstaticorg.junit.Assert.*;/** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */@RunWith(AndroidJUnit4.class)publicclassExampleInstrumentedTest{@TestpublicvoiduseAppContext(){// Context of the app under test.ContextappContext=InstrumentationRegistry.getTargetContext();assertEquals("com.ydl.ydlnet2.test",appContext.getPackageName());}}