@Test
public void testParseIntervalMapChar() {

    IntervalCharMap expected = new IntervalCharMap();
    expected.put(new Interval(1, 2), 'a');
    expected.put(new Interval(3, 5), 'b');
    expected.put(new Interval(5, 6), 'c');
    expected.put(new Interval(6, 7), 'd');
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Character.class, "[1, 2, a]; [3, 5, b]; [5, 6, 'c']; [6, 7, \"d\"]"));
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(char.class, "[1, 2, a]; [3, 5, b]; [5, 6, 'c']; [6, 7, \"d\"]"));
}