}
@Test
public void testLineStringMiddleIndex() {
InsertCoordinateOperation op = new InsertCoordinateOperation(2, new Coordinate(30, 30));
LineString result = (LineString) op.execute(lineString);
Assert.assertEquals(result.getCoordinateN(0).getX(), 10.0, DELTA);
Assert.assertEquals(result.getCoordinateN(2).getX(), 30.0, DELTA);
Assert.assertEquals(result.getCoordinateN(3).getX(), 20.0, DELTA);
Assert.assertEquals(result.getNumPoints(), lineString.getNumPoints() + 1);
}