title: Stub! at android.content.Context.getString(Context.java:14) in android testing
body: <p>im trying to do a unit test for a class that contains this method:</p>
  
  <pre><code>private void launchIntent() {
          Intent intent = new Intent(context, ShareLocationActivity.class);
          ((ChatActivity) context).startActivityForResult(intent, ShareLocationActivity.SEND_LOCATION_REQUEST);
      }
  </code></pre>
  
  <p>When the test try to do new Intent i get this error:</p>
  
  <pre><code>java.lang.RuntimeException: Stub!
      at android.content.Context.getString(Context.java:14)
  </code></pre>
  
  <p>Im doing this to mock my needed context activity </p>
  
  <pre><code>@Mock
  private BaseActivity activity;
  </code></pre>
  
  <p>Whats wrong?</p>