@Test
public void testDecimate3DPoint() throws Exception {

    Point p = gf.createPoint(csf.create(new double[] {0,1,2}, 3));
    
    Decimator d = new Decimator(identity, new Rectangle(0,0,5,5), 0.8);
    d.decimateTransformGeneralize(p, identity);
    assertEquals(1, p.getNumPoints());
    assertEquals(2, p.getCoordinateSequence().getDimension());
}