@Override
  public String toString()
  {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getName());
    sb.append(" [HTTP Status:").append(_status == null ? "null" : _status.getCode());

    if (_serviceErrorCode != null)
    {
      sb.append(", serviceErrorCode:").append(_serviceErrorCode);
    }

    if (hasCode())
    {
      sb.append(", code:").append(_code);
    }

    if (hasDocUrl())
    {
      sb.append(", docUrl:").append(_docUrl);
    }

    if (hasRequestId())
    {
      sb.append(", requestId:").append(_requestId);
    }

    sb.append("]");
    String message = getLocalizedMessage();
    if (message != null)
    {
      sb.append(": ").append(message);
    }
    return sb.toString();
  }
@Test
  public void testNullStatus()
  {
    final RestLiServiceException restLiServiceException = new RestLiServiceException((HttpStatus) null);
    Assert.assertTrue(restLiServiceException.toString().contains("[HTTP Status:null]"));
  }