public void visit(Feature f) {
SimpleFeature feature = (SimpleFeature) f;
cache.put( feature.getID(), feature );
}
};
readFeatures.accepts( cacheResults, null );
assertEquals( "restored", list.size(), cache.size() );
assertEquals( "hello world", cache.get("trip1").getAttribute("text"));
assertEquals( "test if | chracter handling", cache.get("trip2").getAttribute("text"));
assertEquals( "test of\n multi-line handling", cache.get("trip3").getAttribute("text"));
assertEquals( " test of\n whitespace handling", cache.get("trip4").getAttribute("text"));