### Question:
Frequency implements TemporalAmount, Serializable { @FromString public static Frequency parse(String toParse) { ArgChecker.notNull(toParse, "toParse"); if (toParse.equalsIgnoreCase("Term") || toParse.equalsIgnoreCase("T") || toParse.equalsIgnoreCase("0T") || toParse.equalsIgnoreCase("1T")) { return TERM; } String prefixed = toParse.startsWith("P") ? toParse : "P" + toParse; try { return Frequency.of(Period.parse(prefixed)); } catch (DateTimeParseException ex) { throw new IllegalArgumentException(ex); } } private  Frequency(Period period); private  Frequency(Period period, String name); static Frequency of(Period period); static Frequency ofDays(int days); static Frequency ofWeeks(int weeks); static Frequency ofMonths(int months); static Frequency ofYears(int years); @FromString static Frequency parse(String toParse); Period getPeriod(); boolean isTerm(); Frequency normalized(); boolean isWeekBased(); boolean isMonthBased(); boolean isAnnual(); int eventsPerYear(); double eventsPerYearEstimate(); int exactDivide(Frequency other); @Override long get(TemporalUnit unit); @Override List<TemporalUnit> getUnits(); @Override Temporal addTo(Temporal temporal); @Override Temporal subtractFrom(Temporal temporal); @Override boolean equals(Object obj); @Override int hashCode(); @ToString @Override String toString(); static final Frequency P1D; static final Frequency P1W; static final Frequency P2W; static final Frequency P4W; static final Frequency P13W; static final Frequency P26W; static final Frequency P52W; static final Frequency P1M; static final Frequency P2M; static final Frequency P3M; static final Frequency P4M; static final Frequency P6M; static final Frequency P12M; static final Frequency TERM; }### Answer:
@Test public void test_parse_String_term() { assertThat(Frequency.parse("Term")).isEqualTo(Frequency.TERM); assertThat(Frequency.parse("TERM")).isEqualTo(Frequency.TERM); }