@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://tsprovider/SPREADSHEET/20111209/COLLECTION?datePattern=yyyy-MM-dd&file=c%3A%5Cdata.txt&locale=fr_BE#", formatter.format(empty));
}