@Test
public void testParseIntervalMapFloat() {

    IntervalFloatMap expected = new IntervalFloatMap();
    expected.put(new Interval(1, 2), 1f);
    expected.put(new Interval(3, 5), 2f);
    expected.put(new Interval(5, 6), 3f);
    expected.put(new Interval(6, 7), 4f);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Float.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(float.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
}