SimpleFeature[] features = UDIGTestUtil.createDefaultTestFeatures("test", 1); //$NON-NLS-1$
FilterFactory factory= CommonFactoryFinder.getFilterFactory(GeoTools.getDefaultHints());
SimpleFeatureType featureType = features[0].getFeatureType();
BoundingBox bounds = features[0].getBounds();
CoordinateReferenceSystem crs= featureType.getCoordinateReferenceSystem();
BBOX filter = factory.bbox(featureType.getGeometryDescriptor().getName().getLocalPart(), bounds.getMinX(),
bounds.getMinY(), bounds.getMaxX(), bounds.getMaxY(), CRS.lookupIdentifier(crs, false));
cp.setContents(new Object[]{filter},new Transfer[]{UDigByteAndLocalTransfer.getInstance()});
assertSame(filter, cp.getContents(UDigByteAndLocalTransfer.getInstance()));
// cp.setContents(new Object[]{filter},new Transfer[]{FilterTextTransfer.getInstance()});