public class TransferTest {
@Test
public void testFeatureTransfering() throws Exception {
Display display=Display.getCurrent();
Clipboard cp=new Clipboard(display);
SimpleFeature[] features = UDIGTestUtil.createDefaultTestFeatures("test", 1); //$NON-NLS-1$
cp.setContents(features,new Transfer[]{UDigByteAndLocalTransfer.getInstance()});
assertSame(features[0], cp.getContents(UDigByteAndLocalTransfer.getInstance()));
// cp.setContents(features,new Transfer[]{FeatureTextTransfer.getInstance()});
// SimpleFeature contents = (SimpleFeature) cp.getContents(FeatureTextTransfer.getInstance());
// Geometry defaultGeometry = features[0].getDefaultGeometry();
// assertTrue(defaultGeometry.equalsExact(contents.getDefaultGeometry()));