@Test
public void testParseIntervalMapInteger() {

    IntervalIntegerMap expected = new IntervalIntegerMap();
    expected.put(new Interval(1, 2), 1);
    expected.put(new Interval(3, 5), 2);
    expected.put(new Interval(5, 6), 3);
    expected.put(new Interval(6, 7), 4);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Integer.class, "[1, 2, 1.]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));// Decimals
                                                                                                                                            // are
                                                                                                                                            // ignored
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(int.class, "[1, 2, 1.]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));// Decimals
                                                                                                                                        // are
                                                                                                                                        // ignored
}