title: Espresso 2.0 - Method annotated with @Test inside class extending junit3 testcase
body: <p>I got a weird warning <code>Method annotated with @Test inside class extending junit3 testcase</code> when using the new <code>ActivityInstrumentationTestCase2</code> class shipped with Espresso 2.0.</p>
  
  <p>My class looks just like the one that Google provided as an example:</p>
  
  <pre><code>import android.support.test.InstrumentationRegistry;
  import android.support.test.runner.AndroidJUnit4;
  import android.test.ActivityInstrumentationTestCase2;
  import android.test.suitebuilder.annotation.LargeTest;
  
  import org.junit.After;
  import org.junit.Before;
  import org.junit.Test;
  import org.junit.runner.RunWith;
  
  import static android.support.test.espresso.matcher.ViewMatchers.assertThat;
  import static org.hamcrest.Matchers.notNullValue;
  
  @RunWith(AndroidJUnit4.class)
  @LargeTest
  public class MyCoolActivityTests extends ActivityInstrumentationTestCase2&lt;MyCoolActivity&gt; {
  
      private MyCoolActivity mActivity;
  
      public MyCoolActivityTests() {
          super(MyCoolActivity.class);
      }
  
      @Before
      public void setUp() throws Exception {
          super.setUp();
          injectInstrumentation(InstrumentationRegistry.getInstrumentation());
          mActivity = getActivity();
      }
  
      @Test
      public void checkPreconditions() {
          assertThat(mActivity, notNullValue());
          // Check that Instrumentation was correctly injected in setUp()
          assertThat(getInstrumentation(), notNullValue());
      }
  
      @After
      public void tearDown() throws Exception {
          super.tearDown();
      }
  }
  </code></pre>
  
  <p>I've added all necessary things to the build.gradle:</p>
  
  <pre><code>android {
      defaultConfig {
          testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
      }
  }
  
  dependencies {
      androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
      androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
  }
  </code></pre>
  
  <p>Is there any way to get this warning away?</p>