title: How do I test selected ViewPager2 item in espresso?
body: <p>I want to check against a single selected fragment inside a ViewPager2.</p>
  <pre><code>onView(withId(R.id.layout1)).check(matches(isDisplayed()))  
  </code></pre>
  <p>This actually checks against multiple fragments, and gives me AmbiguousViewMatcherException because there are multiple views withId R.id.layout1. But I want to know if the SELECTED / CURRENT item in ViewPager is withId R.id.layout1. The other ones, I don't care.</p>
  <p>How can I match against the selected item in the view2pager2.</p>