### Question:
DataFormat { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof DataFormat && equals((DataFormat) obj)); } private  DataFormat(Locale locale, String datePattern, String numberPattern, Void fake); @Deprecated  DataFormat(@Nullable Locale locale, @Nullable String datePattern); @Deprecated  DataFormat(@Nullable Locale locale, @Nullable String datePattern, @Nullable String numberPattern); @NonNull static DataFormat of(@Nullable Locale locale, @Nullable String datePattern, @Nullable String numberPattern); @NonNull String getNumberPattern(); @NonNull String getDatePattern(); @Nullable Locale getLocale(); @NonNull String getLocaleString(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); Formatters.@NonNull Formatter<Date> dateFormatter(); Parsers.@NonNull Parser<Date> dateParser(); Formatters.@NonNull Formatter<Number> numberFormatter(); Parsers.@NonNull Parser<Number> numberParser(); @NonNull DateFormat newDateFormat(); @NonNull NumberFormat newNumberFormat(); @Deprecated @NonNull static DataFormat create(@Nullable String locale, @Nullable String datePattern); @Deprecated @NonNull static DataFormat create(@Nullable String locale, @Nullable String datePattern, @Nullable String numberPattern); @Deprecated @NonNull static Parser<Locale> localeParser(); @Deprecated @NonNull static Locale toLocale(@NonNull String str); @Deprecated @Nullable String previewDate(); @Deprecated @NonNull static DateFormat newDateFormat(@Nullable String datePattern, @Nullable Locale locale); @Deprecated @NonNull static NumberFormat newNumberFormat(@Nullable Locale locale); static final DataFormat DEFAULT; static final DataFormat ROOT; static final String SEP; }### Answer:
@Test public void testEquals() { assertThat(of(null, null, null)).isEqualTo(of(null, null, null)); assertThat(of(JAPAN, null, null)) .isEqualTo(of(JAPAN, null, null)) .isNotEqualTo(of(null, null, null)) .isNotEqualTo(of(FRANCE, null, null)); assertThat(of(JAPAN, "MMMdd", "#")) .isEqualTo(of(JAPAN, "MMMdd", "#")) .isNotEqualTo(of(null, null, null)) .isNotEqualTo(of(FRANCE, "MMMdd", "#")); }