SimpleFeatureCollection addCollection = DataUtilities.collection(chrisFeature);
List<FeatureId> fids = roadAuto.addFeatures(addCollection);
// checke the id was preserved
assertEquals(1, fids.size());
FeatureId fid = SimpleFeatureBuilder.createDefaultFeatureIdentifier("fid5");
assertTrue(fids.contains(fid));
// manually check the feature with the proper id is actually there
SimpleFeatureIterator it = roadAuto.getFeatures(ff.id(Collections.singleton(fid))).features();
assertTrue(it.hasNext());