@Test
public void parseMetric() throws ParseException {

    assertEquals(0, LaserMeasurement.parse("", true, false).size());
    assertEquals(0, LaserMeasurement.parse(" ", true, false).size());
    assertEquals(0, LaserMeasurement.parse("\n", true, false).size());
    assertEquals(0, LaserMeasurement.parse("\n\n", true, false).size());
    assertEquals(1, LaserMeasurement.parse("100 -100", true, true).size());
    assertEquals(1, LaserMeasurement.parse("100,-100", true, true).size());
    assertEquals(1, LaserMeasurement.parse("100, -100", true, true).size());
    assertEquals(1, LaserMeasurement.parse("100\t-100", true, true).size());
    assertEquals(1, LaserMeasurement.parse("100/-100", true, true).size());
    assertEquals(1, LaserMeasurement.parse("  100,  -100  ", true, true).size());
    assertEquals(2, LaserMeasurement.parse("100,-100\n20.0, -50.0", true, true).size());
    assertEquals(2, LaserMeasurement.parse("100,-100\n20.0, -50.0\n", true, true).size());
    assertEquals(2, LaserMeasurement.parse("100 -100\n20.0 -50.0\n", true, true).size());
    assertEquals(2, LaserMeasurement.parse("100 -100\n  20.0  -50.0  ", true, true).size());
}