@Test
public void testParseIntervalMapDouble() {

    IntervalDoubleMap expected = new IntervalDoubleMap();
    expected.put(new Interval(1, 2), 1d);
    expected.put(new Interval(3, 5), 2d);
    expected.put(new Interval(5, 6), 3d);
    expected.put(new Interval(6, 7), 4d);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Double.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(double.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
}