title: Espresso.pressBack() does not call onBackPressed()
body: <p>In Espresso class:</p>
  
  <pre><code> @Rule
      public IntentsTestRule&lt;MainActivity&gt; mIntentsRule = new IntentsTestRule&lt;&gt;(
              MainActivity.class);
  
  @Test
  public void test_backButton(){
  onView(withId(R.id.NEXT_ACTIVITY)).perform(scrollTo(), click());
  
  Espresso.pressBack();
  }
  </code></pre>
  
  <p>In Activity:</p>
  
  <pre><code> @Override
  public void onBackPressed() {
      Log.d("TEST_pressBack", "inside onBackPressed()");
      do_something();
      super.onBackPressed();
  
  }
     @Override
  public void finish() {
      Log.d("TEST_pressBack", "inside finish()");
      super.finish();
  
  }
  </code></pre>
  
  <p>When I call the Espresso test method the execution goes directly to <code>finish()</code>.</p>
  
  <p>When I press the back button (with my hand) in the <code>Activity</code> the execution goes firstly in <code>onBackPressed()</code> and then to <code>finish()</code>. 
  How can I test the function <code>onBackPressed()</code> with Espresso?
  Thanks!</p>
  
  <p>EDIT:
  It is my error. The problem was that in Activity in which I wanted to call pressBack the onscreen keyboard was opened. When the soft keyboard is open then the press-button does not call onBackPressed but instead makes the keyboard non-displayed. I tried with two pressBack() in a row and it worked correctly:</p>
  
  <pre><code>    @Rule
      public IntentsTestRule&lt;MainActivity&gt; mIntentsRule = new IntentsTestRule&lt;&gt;(
              MainActivity.class);
  
  @Test
  public void test_backButton(){
  onView(withId(R.id.NEXT_ACTIVITY)).perform(scrollTo(), click());
  
  Espresso.pressBack();
  
  //The extra pressBack()
  Espresso.pressBack();
  
  }
  </code></pre>