public void testLinearRingToCurve() throws Exception {
Geometry ls = new WKTReader().read("LINEARRING(0 0, 10 10, 10 0, 0 0)");
Map<String, String> userData = Collections.singletonMap("test", "value");
ls.setUserData(userData);
Converter converter = getConverter(ls, CurvedGeometry.class);
CurvedGeometry curve = converter.convert(ls, CurvedGeometry.class);
assertTrue(curve instanceof CompoundRing);
CompoundRing cr = (CompoundRing) curve;
assertEquals(1, cr.getComponents().size());
assertEquals(ls, cr.getComponents().get(0));
assertEquals(userData, cr.getUserData());