private int combineTestStatus(int beforeMethodStatus,
                                 int testMethodStatus,
                                 int afterMethodStatus)
   {
      int finalStatus = ITestResult.SKIP;
      if (beforeMethodStatus == ITestResult.SUCCESS
               && testMethodStatus == ITestResult.SUCCESS
               && afterMethodStatus == ITestResult.SUCCESS) {
         finalStatus = ITestResult.SUCCESS;
      } else if ((testMethodStatus == ITestResult.SUCCESS && afterMethodStatus == ITestResult.FAILURE)
               || (testMethodStatus == ITestResult.FAILURE && afterMethodStatus == ITestResult.SUCCESS)) {
         finalStatus = ITestResult.FAILURE;
      }
      return finalStatus;
   }