@@ -0,0 +1,732 @@
+package com.github.dddpaul.netcat;%0A%0Aimport android.support.v4.view.ViewPager;%0A%0Aimport com.github.dddpaul.netcat.ui.MainActivity;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.Robolectric;%0Aimport org.robolectric.RobolectricTestRunner;%0Aimport org.robolectric.annotation.Config;%0A%0A@Config( emulateSdk = 18 )%0A@RunWith( RobolectricTestRunner.class )%0Apublic class ActivityTest extends Assert%0A%7B%0A    @Test%0A    public void test()%0A    %7B%0A        MainActivity activity = Robolectric.buildActivity( MainActivity.class ).create().get();%0A        assertNotNull( activity );%0A%0A        ViewPager pager = (ViewPager) activity.findViewById( R.id.pager );%0A        assertNotNull( pager );%0A    %7D%0A%7D%0A

Create sample activity test