code: static String getStatusCssClass(DeviceTestResult testResult) {
      String status;
      switch (testResult.getStatus()) {
        case PASS:
          status = "pass";
          break;
        case IGNORED:
          status = "ignored";
          break;
        case FAIL:
          status = "fail";
          break;
        case ASSUMPTION_FAILURE:
          status = "assumption-violation";
          break;
        default:
          throw new IllegalArgumentException("Unknown result status: " + testResult.getStatus());
      }
      return status;
    }
docs: Convert a test result status into an HTML CSS class.