public void testCharset() throws Exception {
FeatureSource<? extends FeatureType, ? extends Feature> fs;
fs = getFeatureSource(SystemTestData.BASIC_POLYGONS);
ShapeZipOutputFormat zip = new ShapeZipOutputFormat();
ByteArrayOutputStream bos = new ByteArrayOutputStream();
FeatureCollectionResponse fct =
FeatureCollectionResponse.adapt(WfsFactory.eINSTANCE.createFeatureCollectionType());
fct.getFeature().add(fs.getFeatures());
// add the charset
Map options = new HashMap();
options.put("CHARSET", Charset.forName("ISO-8859-15"));
gft.setFormatOptions(options);