### Question:
CsvLoaderUtils { public static EtdSettlementType parseEtdSettlementType(String str) { String upper = str.toUpperCase(Locale.ENGLISH); EtdSettlementType fromCode = SETTLEMENT_BY_CODE.get(upper); return fromCode != null ? fromCode : EtdSettlementType.of(str); } private  CsvLoaderUtils(); static Pair<YearMonth, EtdVariant> parseEtdVariant(CsvRow row, EtdType type); static EtdSettlementType parseEtdSettlementType(String str); static EtdOptionType parseEtdOptionType(String str); static DoublesPair parseQuantity(CsvRow row); static String formattedPercentage(double value); static String formattedDouble(double value); static final String SECURITY_ID_SCHEME_FIELD; static final String SECURITY_ID_FIELD; static final String EXCHANGE_FIELD; static final String CONTRACT_CODE_FIELD; static final String LONG_QUANTITY_FIELD; static final String SHORT_QUANTITY_FIELD; static final String QUANTITY_FIELD; static final String PRICE_FIELD; static final String EXPIRY_FIELD; static final String EXPIRY_WEEK_FIELD; static final String EXPIRY_DAY_FIELD; static final String SETTLEMENT_TYPE_FIELD; static final String EXERCISE_STYLE_FIELD; static final String VERSION_FIELD; static final String PUT_CALL_FIELD; static final String EXERCISE_PRICE_FIELD; static final String UNDERLYING_EXPIRY_FIELD; static final String CURRENCY; static final String TICK_SIZE; static final String TICK_VALUE; static final String CONTRACT_SIZE; static final int DEFAULT_OPTION_VERSION_NUMBER; static final ImmutableMap<String, EtdSettlementType> SETTLEMENT_BY_CODE; }### Answer:
@Test public void test_parseEtdSettlementType() { assertThat(CsvLoaderUtils.parseEtdSettlementType("C")).isEqualTo(EtdSettlementType.CASH); assertThat(CsvLoaderUtils.parseEtdSettlementType("CASH")).isEqualTo(EtdSettlementType.CASH); assertThat(CsvLoaderUtils.parseEtdSettlementType("c")).isEqualTo(EtdSettlementType.CASH); assertThat(CsvLoaderUtils.parseEtdSettlementType("E")).isEqualTo(EtdSettlementType.PHYSICAL); assertThat(CsvLoaderUtils.parseEtdSettlementType("PHYSICAL")).isEqualTo(EtdSettlementType.PHYSICAL); assertThat(CsvLoaderUtils.parseEtdSettlementType("e")).isEqualTo(EtdSettlementType.PHYSICAL); assertThatIllegalArgumentException().isThrownBy(() -> CsvLoaderUtils.parseEtdSettlementType("")); }