title: Testing Snackbar show with Espresso
body: <p>Is there a way to test using Espresso that the snackbar shows up with the right text?</p>
  
  <p>I have a simple call to create a snackbar</p>
  
  <pre><code>Snackbar.make(mView, "My text", Snackbar.LENGTH_LONG).show();
  </code></pre>
  
  <p>I have tried this without luck</p>
  
  <pre><code>onView(withText("My text")).inRoot(withDecorView(not(is(mActivityRule.getActivity().getWindow().getDecorView())))).check(matches(isDisplayed()));
  </code></pre>