title: Get result from an activity after finish(); in an Android unit test
body: <p>I'm currently writing some Android unit tests, and while I've gotten most things to work the way I want, one thing has left me kind of stumped. </p>
  
  <p>I have the following code in my activity under test: </p>
  
  <pre><code>Intent result = new Intent();
  result.putExtra("test", testinput.getText().toString());
  setResult(Activity.RESULT_OK, result);
  finish();
  </code></pre>
  
  <p>I'm trying to figure out how to use Instrumentation (or whatever) to be able to read the result of the activity, or get at the intent after the activity is finished. 
  Can anyone help? </p>