docs: function (errorMsg, count) {
                  var res = null;
                  var logAppender = this._logAppender;
                  var logs = logAppender.getLogs(), errFound = false, newLogs = [];
                  if (!errorMsg) {
                      this.assertTrue(false, "assertErrorInLogs was called with a null error message.");
                  }
                  if (count && count > 0) {
                      res = [];
                      var localCount = 0;
                      for (var i = 0; logs.length > i; i++) {
                          if (localCount < count && logs[i].msgId == errorMsg) {
                              localCount++;
                              res.push(logs[i]);
                          } else {
                              newLogs.push(logs[i]);
                          }
                      }
                      logAppender.setLogs(newLogs);
                      this.assertTrue(localCount == count, "Expected error " + errorMsg + " found " + localCount
                              + " times in logs");
                  } else {
                      for (var i = 0; logs.length > i; i++) {
                          if (logs[i].msgId == errorMsg) {
                              errFound = true;
                              res = logs[i];
                          } else {
                              newLogs.push(logs[i]);
                          }
                      }
                      logAppender.setLogs(newLogs);
                      this.assertTrue(errFound, "Expected error not found in logs: " + errorMsg);
                  }
                  return res;
              }