FeatureCollectionType fct = (FeatureCollectionType) p.parse(new ByteArrayInputStream(
response.getOutputStreamContent().getBytes()));
FeatureCollection fc = (FeatureCollection) fct.getFeature().get(0);
assertEquals(1, fc.size());
SimpleFeature sf = (SimpleFeature) fc.features().next();
Geometry simplified = ((Geometry) sf.getDefaultGeometry());
assertTrue(new Envelope(-92, -87, 37, 43).contains(simplified.getEnvelopeInternal()));
// should have been simplified to a 4 side polygon
assertEquals(5, simplified.getCoordinates().length);
}