@Test
public void testDecimateCollection() throws Exception {

    WKTReader2 reader = new WKTReader2();
    MultiLineString origin = (MultiLineString) reader
            .read("MULTICURVE((0 0, 5 5),CIRCULARSTRING(4 0, 4 4, 8 4))");
    Decimator d = new Decimator(0.1, 0.1);
    MultiLineString simplified = (MultiLineString) d.decimateTransformGeneralize(origin,
            identity);
    assertEquals(origin.getGeometryN(0), simplified.getGeometryN(0));
    assertNotEquals(origin.getGeometryN(1), simplified.getGeometryN(1));
    assertEquals("CircularString", origin.getGeometryN(1).getGeometryType());
    assertEquals("LineString", simplified.getGeometryN(1).getGeometryType());
}