}
public void testUniqueCoordinateArrayFilter() throws Exception {
Geometry g = reader.read(
"MULTIPOINT(10 10, 20 20, 30 30, 20 20, 10 10)");
UniqueCoordinateArrayFilter f = new UniqueCoordinateArrayFilter();
g.apply(f);
assertEquals(3, f.getCoordinates().length);
assertEquals(new Coordinate(10, 10), f.getCoordinates()[0]);
assertEquals(new Coordinate(20, 20), f.getCoordinates()[1]);
assertEquals(new Coordinate(30, 30), f.getCoordinates()[2]);
}