@Test
  public void testSystemHealthErrorInterpretation() {
    for (RouterErrorCode errorCode : RouterErrorCode.values()) {
      switch (errorCode) {
        case InvalidBlobId:
        case InvalidPutArgument:
        case BlobTooLarge:
        case BadInputChannel:
        case BlobDeleted:
        case BlobDoesNotExist:
        case BlobAuthorizationFailure:
        case BlobExpired:
        case RangeNotSatisfiable:
        case ChannelClosed:
        case BlobUpdateNotAllowed:
          Assert.assertFalse(RouterUtils.isSystemHealthError(new RouterException("", errorCode)));
          break;
        default:
          Assert.assertTrue(RouterUtils.isSystemHealthError(new RouterException("", errorCode)));
          break;
      }
    }
    Assert.assertTrue(RouterUtils.isSystemHealthError(new Exception()));
    Assert.assertFalse(RouterUtils.isSystemHealthError(Utils.convertToClientTerminationException(new Exception())));
  }
Test to ensure system health errors are interpreted correctly.
ambry-router/src/test/java/com/github/ambry/router/RouterUtilsTest.java