DataSet implements IConfig, Serializable { public static Formatters.@NonNull Formatter<DataSet> uriFormatter() { return URI_FORMATTER; } @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 testUriFormatter() { DataSet dataSet = newSample(); Formatters.Formatter<DataSet> formatter = DataSet.uriFormatter(); Assert.assertNotNull(formatter.format(dataSet)); DataSet d1 = new DataSet(id, DataSet.Kind.COLLECTION, content); DataSet d2 = new DataSet(id, DataSet.Kind.COLLECTION, content); Assert.assertEquals(formatter.format(d1), formatter.format(d2)); DataSet empty = new DataSet(id, DataSet.Kind.COLLECTION, emptyContent); Assert.assertEquals("demetra: }