static String getAbbreviation(Exception ex,
      Integer statusCode,
      String storageErrorMessage) {
    String result = null;
    for (RetryReasonCategory retryReasonCategory : rankedReasonCategories) {
      final String abbreviation
          = retryReasonCategory.captureAndGetAbbreviation(ex,
          statusCode, storageErrorMessage);
      if (abbreviation != null) {
        result = abbreviation;
      }
    }
    return result;
  }
@Test
  public void testConnectionResetRetryReason() {
    SocketException connReset = new SocketException(CONNECTION_RESET_MESSAGE.toUpperCase());
    Assertions.assertThat(RetryReason.getAbbreviation(connReset, null, null)).isEqualTo(CONNECTION_RESET_ABBREVIATION);
  }