title: Android Espresso how to test flow to specific activity from different paths
body: <p>I am using espresso to test the contents of text view in an activity say C.
  It is possible to reach this activity either via A or via B, each resulting in a different value of the text view.</p>
  
  <p>By default, Espresso always runs the test A->C and never from B->C. 
  How do I test both these flows, as Espresso only let's me specify the name of the activity containing the text view rather than the path taken to reach there.  </p>
  
  <p>I am using this to specify class C in my test :</p>
  
  <pre><code> @Rule
          public ActivityTestRule&lt;C&gt; mActivityRule = new ActivityTestRule&lt;&gt;(
                  C.class);
  </code></pre>
  
  <p>How do I test both the aforementioned flows ?</p>
  
  <p>Thanks!</p>