title: Android Mockito how to mock a resource
body: <p>I am using robolectric as my test runner with Mockito. I would like to know in Android how do i mock a resource. I have a array resource but in my test i'd like to mock the value. </p>
  
  <p>i have an array that looks like this:</p>
  
  <pre><code> &lt;array name="screen_sections"&gt;
          &lt;item&gt;screen1&lt;/item&gt;
          &lt;item&gt;screen2&lt;/item&gt;
          &lt;item&gt;screen3&lt;/item&gt;
          &lt;item&gt;screen4&lt;/item&gt;
      &lt;/array&gt;
  </code></pre>
  
  <p>and in test code i'd like to mock these values. </p>