@Test
public void testUnionWithTolerance() {

  WKTReader reader = new WKTReader();
  try {
    Geometry g1 = reader
        .read("LINESTRING (601103.3340069023 129288.05055561525, 601102.0842804064 129856.67611130093, 601320.7864172085 129316.79426502353, 601323.263544294 129847.90736367383)");
    Geometry g2 = reader
        .read("LINESTRING (601323.2858702005 129847.92802582885, 601824.4261951016 129860.42529078897, 601968.144742143 129494.25542745732, 601806.9300241574 129236.81176927875, 601447.0087933057 129430.51937616068, 601422.0142633856 129672.9663163871, 601549.4863659788 129830.43185488468)");
    ILineString line1 = (ILineString) AdapterFactory.toGM_Object(g1);
    ILineString line2 = (ILineString) AdapterFactory.toGM_Object(g2);
    List<ILineString> list = new ArrayList<ILineString>();
    list.add(line1);
    list.add(line2);
    ILineString result = Operateurs.union(list, 1.0);
    if (result.equals(line1)) {
      Assert.fail();
    }
  } catch (Exception e) {
    e.printStackTrace();
  }
}