### Question:
Frequency implements TemporalAmount, Serializable { public static Frequency ofDays(int days) { if (days % 7 == 0) { return ofWeeks(days / 7); } return new Frequency(Period.ofDays(days)); } 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_equals_hashCode() { Frequency a1 = P1D; Frequency a2 = Frequency.ofDays(1); Frequency b = P3M; assertThat(a1) .isEqualTo(a1) .isEqualTo(a2) .isNotEqualTo(b) .isNotEqualTo("") .isNotEqualTo(null) .hasSameHashCodeAs(a2); }