SimpleFeature feature = SimpleFeatureBuilder.build(resource.getSchema(),
new Object[]{multiline, "multiline"}, "testGeom"); //$NON-NLS-1$
Set<Identifier> ids = new HashSet<Identifier>();
FilterFactory filterFactory = CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
ids.add(filterFactory.featureId(features.features().next().getID()));
resource.modifyFeatures(feature.getFeatureType().getGeometryDescriptor(), multiline,
filterFactory.id(ids));
handler.handleEvent(new MapMouseEvent(null, 20, 15, none, none, button1), EventType.RELEASED);