feature = oldFeatures.get(0);
newFeatures = new ArrayList<InternalFeature>();
feature = feature.clone();
newFeatures.add(feature);
feature.getAttributes().put(STRING_ATTR, new StringAttribute("changed"));
feature.getAttributes().put(INTEGER_ATTR, new IntegerAttribute(12345));
layerService.saveOrUpdate(LAYER_ID, crs, oldFeatures, newFeatures);
// check changes
filter = filterService.createFidFilter(new String[]{"1"});
oldFeatures = layerService.getFeatures(LAYER_ID, crs, filter, null,
VectorLayerService.FEATURE_INCLUDE_ATTRIBUTES);