public void testmeasureOnLength() {
   arbitraryLine.measureOnLength(false);
   double maxM = arbitraryLine.getMaxM();
   double minM = arbitraryLine.getMinM();
   assertEquals(maxM, arbitraryLine.getLength(), DoubleComparator.defaultNumericalPrecision());
   assertEquals(minM, 0.0d, DoubleComparator.defaultNumericalPrecision());
   MCoordinate mco = (MCoordinate) arbitraryLine.getCoordinateN(arbitraryLine.getNumPoints() - 1);
   assertEquals(mco.m, maxM, DoubleComparator.defaultNumericalPrecision());
   mco = (MCoordinate) arbitraryLine.getCoordinateN(0);
   assertEquals(mco.m, minM, DoubleComparator.defaultNumericalPrecision());
 }