title: How to manually fail an Espresso test
body: <p>Is there a way to manually fail an Espresso test?</p>
  
  <p>Say I want to compare the values of two <code>int</code> types and fail the test if they don't match:</p>
  
  <pre><code>@Test
  public void testTwoInts() {
  
      int var1 = mActivityTestRule.getActivity().var1;
      int var1 = mActivityTestRule.getActivity().var2;
  
      if(var1 != var2)
          fail();
  }
  </code></pre>