title: Robolectric "INTERNET permission is required"
body: <p>I'm getting this error when I create an activity with Robolectric:</p>
  
  <p><code>java.lang.IllegalArgumentException: INTERNET permission is required.</code></p>
  
  <p>This is what I'm doing:</p>
  
  <pre><code>@Config(constants = BuildConfig.class,
      sdk = TestConfig.MIN_SDK_UNIT_TESTS,
      manifest = "src/main/AndroidManifest.xml")
  @RunWith(RobolectricGradleTestRunner.class)
  public class ATest {
    @Test public void testTrackDoNotAskMeAgainSelected() throws Exception {
      final AnActivity activity = Robolectric.buildActivity(AnActivity.class).create().get();
  }
  </code></pre>
  
  <p><strong>UPDATE 1:</strong>
  Our current setup, We have this manifests:</p>
  
  <pre><code>app/src/androidTest/AndroidManifest.xml
  app/src/debug/AndroidManifest.xml
  app/src/main/AndroidManifest.xml
  app/src/test/AndroidManifest.xml
  </code></pre>
  
  <p>I found that <code>debug</code> is executed instead of <code>test</code>, so that's why the permission in <code>app/src/test/AndroidManifest.xml</code> is ignored.</p>