title: Android Espresso: How do I test a specific Fragment when following one activity to several fragment architecture
body: <p>My app consists of one <code>Activity</code> for many <code>Fragments</code>.</p>
  
  <p>I wish to use Espresso to test the UI of the <code>Fragments</code>. However I ran into a problem. </p>
  
  <p>How can I test a <code>Fragment</code> which is not added to an <code>Activity</code> in <code>onCreate</code>. All examples I have seen with <code>Fragments</code> involve the <code>Fragment</code> being added in <code>onCreate</code>.
  So how can I tell Espresso to go to a specific <code>Fragment</code> and start from there?</p>
  
  <p>Thanks</p>