public void testLineStringToCurve() throws Exception {
Geometry ls = new WKTReader().read("LINESTRING(0 0, 10 10)");
Converter converter = getConverter(ls, CurvedGeometry.class);
CurvedGeometry curve = converter.convert(ls, CurvedGeometry.class);
assertTrue(curve instanceof CompoundCurve);
CompoundCurve cc = (CompoundCurve) curve;
assertEquals(1, cc.getComponents().size());
assertEquals(ls, cc.getComponents().get(0));
}