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 testConnectionTimeoutRetryReason() {
    SocketTimeoutException connectionTimeoutException = new SocketTimeoutException(CONNECTION_TIMEOUT_JDK_MESSAGE);
    Assertions.assertThat(RetryReason.getAbbreviation(connectionTimeoutException, null, null)).isEqualTo(
        CONNECTION_TIMEOUT_ABBREVIATION
    );
  }