title: How to access resources in Android Unittest?
body: <p>My project has two projects:</p>
  
  <pre><code>main
  mainTest
  </code></pre>
  
  <p>I created an "AndroidTestCase" in the "mainTest" and I tried to use <strong>getContext().getResources()</strong> to access the resources I created in the "mainTest" project. But I found the code is actually trying to get the resources in the "main" project. I think it is because when I use <strong>getContext()</strong> it returns an context representing the "main" project. But the <strong>AndroidTestCase</strong> class does not provide any methods to get its own resources.</p>
  
  <p>P.S. I found I can directly use <strong>class.getResourceAsStream()</strong> to access the raw file, which is what I want. But still I hope there are more convenient way.</p>