private void runExtractLine(
     String wkt, LinearLocation start, LinearLocation end, String expected) {
   Geometry geom = read(wkt);
   LocationIndexedLine lil = new LocationIndexedLine(geom);
   Geometry result = lil.extractLine(start, end);
   // System.out.println(result);
   checkExpected(result, expected);
 }
 protected Geometry indicesOfThenExtract(Geometry input, Geometry subLine) {
   LocationIndexedLine indexedLine = new LocationIndexedLine(input);
   LinearLocation[] loc = indexedLine.indicesOf(subLine);
   Geometry result = indexedLine.extractLine(loc[0], loc[1]);
   return result;
 }