package com.example.espresso.activity;

import android.test.ActivityInstrumentationTestCase2;
import android.test.suitebuilder.annotation.LargeTest;
import com.example.R;
import com.example.robolectric.DeckardActivity;

//import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;
import static android.support.test.espresso.Espresso.onView;
//import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.matches;
import static android.support.test.espresso.assertion.ViewAssertions.matches;
//import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withId;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
//import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withText;
import static android.support.test.espresso.matcher.ViewMatchers.withText;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.support.test.runner.AndroidJUnit4;
import android.support.test.InstrumentationRegistry;

@RunWith(AndroidJUnit4.class)
@LargeTest
public class DeckardEspressoTest extends ActivityInstrumentationTestCase2<DeckardActivity> {

    @SuppressWarnings("deprecation")
     public DeckardEspressoTest() {
       // This constructor was deprecated - but we want to support lower API levels.
       super("com.example.activity", DeckardActivity.class);
     }
    @Before
    public void setUp() throws Exception {
        super.setUp();
        // Espresso will not launch our activity for us, we must launch it via getActivity().
        injectInstrumentation(InstrumentationRegistry.getInstrumentation());
        getActivity();
    }

    @Test
    public void testCheckText() {
        onView(withId(R.id.text))
            .check(matches(withText("Hello Espresso!")));
      }
}

@@ -217,597 +217,218 @@
 y;%0A%0A
-//import static com.google.android.apps.common.testing.ui.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.Espresso.onView;%0A//import static com.google.android.apps.common.testing.ui.espresso.assertion.ViewAssertions.matches;%0Aimport static android.support.test.espresso.assertion.ViewAssertions.matches;%0A//import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withId;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0A//import static com.google.android.apps.common.testing.ui.espresso.matcher.ViewMatchers.withText
+import static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.assertion.ViewAssertions.matches;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId
 ;%0Aim
@@ -525,16 +525,40 @@
 Before;%0A
+import org.junit.After;%0A
 import o
@@ -1492,11 +1492,109 @@
 %0A      %7D
+%0A%0A      @After%0A      public void tearDown() throws Exception %7B%0A          super.tearDown();%0A      %7D
 %0A%7D%0A

add after annotation