f.getUserData().put("foo", "bar");
DefaultFeatureCollection features = new DefaultFeatureCollection(null, b.getFeatureType());
features.add(f);
FeatureIterator it = features.features();
try {
assertEquals("bar", it.next().getUserData().get("foo"));
}
finally {