title: Espresso Test Failed: Wanted to match 1 intent, Actually matched 2 intents
body: <p>I am getting this error while testing activity launch using espresso.</p>
  
  <p><strong>android.support.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: Wanted to match 1 intents. Actually matched 2 intents.</strong></p>
  
  <p>Surprisingly other activity launch tests with same code are getting passed.</p>
  
  <pre><code>@RunWith(AndroidJUnit4.class)
  public class HomeActivityTest {
  
    @Rule
    public final IntentsTestRule&lt;HomeActivity&gt; mHomeActivityRule = new IntentsTestRule&lt;HomeActivity&gt;(HomeActivity.class);
  
  
    @Test
    public void testFundTransferActivityStarted() {
  
      onView(withId(R.id.button_fund_transfer)).perform(click());
  
      intended(hasComponent("mypackage.FundTransferActivity"));
   }
  
  }
  </code></pre>
  
  <p>button click simply starts FundTransfer activity using startActivity.</p>