@Test
  public void shouldBeAbleToFetchExceptionAfterKeyEvent() {
    try {
      WebElement exceptionTestField = driver().findElement(By.id("exceptionTestField"));
      Assert.assertNotNull("TextField should be found.", exceptionTestField);
      exceptionTestField.sendKeys("a");
    } catch (Exception e) {
      String message = e.getMessage();
      Assert.assertTrue(message.contains("Unhandled exception from application under test."));
      try {
        // Recover from the application crash which was made by intention.
        startSelendroidServer();
      } catch (Exception e1) {
        Assert.fail("Unable to restart selendroid server");
      }
      return;
    }
    Assert.fail("Should catch the exception.");
  }
Checks if we are able to fetch and propagate unhandled exception, occurring
in application under test and causing a crash, to the local end.
selendroid-test-app/src/test/java/io/selendroid/nativetests/UnhandledExceptionPropagatingTest.java