### Question:
CsvLoaderUtils { public static EtdOptionType parseEtdOptionType(String str) { switch (str.toUpperCase(Locale.ENGLISH)) { case "AMERICAN": case "A": return EtdOptionType.AMERICAN; case "EUROPEAN": case "E": return EtdOptionType.EUROPEAN; default: throw new IllegalArgumentException( "Unknown EtdOptionType value, must be 'American' or 'European' but was '" + str + "'; " + "parser is case insensitive and also accepts 'A' and 'E'"); } } 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_parseEtdOptionType() { assertThat(CsvLoaderUtils.parseEtdOptionType("A")).isEqualTo(EtdOptionType.AMERICAN); assertThat(CsvLoaderUtils.parseEtdOptionType("AMERICAN")).isEqualTo(EtdOptionType.AMERICAN); assertThat(CsvLoaderUtils.parseEtdOptionType("a")).isEqualTo(EtdOptionType.AMERICAN); assertThat(CsvLoaderUtils.parseEtdOptionType("E")).isEqualTo(EtdOptionType.EUROPEAN); assertThat(CsvLoaderUtils.parseEtdOptionType("EUROPEAN")).isEqualTo(EtdOptionType.EUROPEAN); assertThat(CsvLoaderUtils.parseEtdOptionType("e")).isEqualTo(EtdOptionType.EUROPEAN); assertThatIllegalArgumentException().isThrownBy(() -> CsvLoaderUtils.parseEtdOptionType("")); }