private boolean HLIDRoundTripConversionTest(Object obj) {
    try {
      String apiId = null;
      if (obj instanceof String) {
        apiId = CompactHLIDConverter.converter().toCompactHLId((String) obj);
      } else if (obj instanceof Number) {
        apiId = CompactHLIDConverter.converter().toCompactHLId((Number) obj);
      }
      Object roundTripObj = CompactHLIDConverter.converter().fromCompactHLId(apiId);
      assertTrue(obj.equals(roundTripObj));
    } catch (Throwable e) {
      fail(e.toString());
    }
    return true;
  }