DataSet implements IConfig, Serializable { @Override public boolean equals(Object obj) { return this == obj || (obj instanceof DataSet && equals((DataSet) obj)); } @VisibleForTesting  DataSet(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull ImmutableSortedMap<String, String> params); @NonNull DataSource getDataSource(); @NonNull Kind getKind(); @Override SortedMap<String, String> getParams(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); @NonNull Builder toBuilder(@NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind); @NonNull static DataSet of(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull String key, @NonNull String value); @NonNull static DataSet deepCopyOf(@NonNull DataSource dataSource, @NonNull Kind kind, @NonNull Map<String, String> params); @NonNull static Builder builder(@NonNull DataSource dataSource, @NonNull Kind kind); @Deprecated @NonNull static Builder builder(@NonNull DataSet dataSet, @NonNull Kind kind); static Formatters.@NonNull Formatter<DataSet> xmlFormatter(boolean formattedOutput); static Parsers.@NonNull Parser<DataSet> xmlParser(); static Formatters.@NonNull Formatter<DataSet> uriFormatter(); static Parsers.@NonNull Parser<DataSet> uriParser();  }
@Test public void testEquals() { assertThat(newSample()) .isEqualTo(newSample()) .isNotEqualTo(new DataSet(id, DataSet.Kind.SERIES, content)) .isNotEqualTo(new DataSet(id, DataSet.Kind.DUMMY, emptyContent)); }