title: android espresso:test for new activity launch on button click is failing
body: <p>I am testing whether a button click migrates to new activity using intended,and it is displaying the new activity being launched on device,but test case is failing,I am using the following code for same. </p>
  
  <pre><code>onView(withId(R.id.bt_click)).perform(click());
  intended(hasComponent(hasClassName(CodeVerify.class.getName())));
  </code></pre>