c.clear();
c.add(new Coordinate(x0, y0));
c.add(new Coordinate(-179.99, 1.12345));
c.add(new Coordinate(179.99, 1.12345));
c.add(new Coordinate(x1, y1));
ls = gf.createLineString(c.toArray(new Coordinate[0]));
coords = CompactLineString.compactLineString(x0, y0, x1, y1, ls, false);
assertTrue(coords != CompactLineString.STRAIGHT_LINE);
ls2 = CompactLineString.uncompactLineString(x0, y0, x1, y1, coords, false);
assertTrue(ls.equalsExact(ls2, 0.00000015));
packedCoords = CompactLineString.compackLineString(x0, y0, x1, y1, ls, false);