@Test
public void testParseIntervalMapLong() {

    IntervalLongMap expected = new IntervalLongMap();
    expected.put(new Interval(1, 2), 1l);
    expected.put(new Interval(3, 5), 2l);
    expected.put(new Interval(5, 6), 3l);
    expected.put(new Interval(6, 7), 4l);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Long.class, "[1, 2, 1.0]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));// Decimals
                                                                                                                                          // are
                                                                                                                                          // ignored
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(long.class, "[1, 2, 1.0]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));// Decimals
                                                                                                                                          // are
                                                                                                                                          // ignored
}