title: Espresso 2.2.1 - Check if fragment layout is displayed
body: <p>How can I check if fragment is displayed in espresso? Can I use layout id in withId?</p>
  
  <pre><code>onView(withId(R.layout.foo_fragment)).check(matches(isDisplayed()));
  </code></pre>
  
  <p>I get a no views in hierarchy exception.</p>