@Test
public void testAttributesWriting() throws Exception {

    SimpleFeatureCollection features = createFeatureCollection();
    File tmpFile = getTempFile();
    tmpFile.createNewFile();
    ShapefileDataStore s = new ShapefileDataStore(tmpFile.toURI().toURL());
    writeFeatures(s, features);
    s.dispose();
}