title: How to make a test fail in testng report which is pass due try catch block?
body: <p>After executing the below code testng reports shows as pass due to try-catch block, but I need to fail the test if the control come into catch block.</p>
  
  <pre><code>@Test
  public void testIt( Method method )
  {
      Webdriver d1= new FirefoxDriver();
      d1.get(http://www.google.com);
      String title=d1.getTitle();
      String var=Gogle;
      System.out.println("start execution!!!");
      try {
          Assert.assertEquals( title,var );
      } catch( Throwable er ) {
          System.out.println("Error in method '" + method.getName() + "'.);}
          System.out.println("Execution End!!!");
      }
  }
  </code></pre>