title: How to provide mock data when testing with Espresso
body: <p>We have a very large Android application with no tests. We're suffering the typical quality/too long manual regression testing cycles problem.</p>
  
  <p>As a server side developer, who is new to Android, I want to introduce developer tests.</p>
  
  <p>I can see how to unit test normal Java code with JUnit.</p>
  
  <p>However, the Activities/Fragments/Adapters are proving more difficult.</p>
  
  <p>I watched the Espresso video from GTAC and was impressed and decided to use that.</p>
  
  <p>Where I'm struggling is how to provide my testcase with mocked data to then confirm the display.</p>
  
  <p>Is this even possible? It seems that Espresso is for black box testing, which limits its use for developers considerably (its target audience) since (usually) black box testing is done by QA.</p>