}
@Test
@SuppressWarnings("rawtypes")
public void testUpdate() throws Exception {
SimpleFeature f1 = (SimpleFeature) layer.create(SimpleFeature.getDefaultInstance1(null));
Assert.assertNotNull(f1.getId());
Object feature = layer.read(f1.getId().toString());
Assert.assertNotNull("The requested feature could not be found!", feature);
// Create a detached copy
SimpleFeature detached = SimpleFeature.getDefaultInstance1(null);
detached.setId(((SimpleFeature) feature).getId());
Map<String, Attribute> attributes = new HashMap<String, Attribute>();
attributes.put(PARAM_TEXT_ATTR, new StringAttribute("new name"));
attributes.put(PARAM_FLOAT_ATTR, new FloatAttribute(5f));
Calendar c = Calendar.getInstance();
attributes.put(PARAM_DATE_ATTR, new DateAttribute(c.getTime()));