@Test
public void testParseIntervalMapByte() {

    IntervalByteMap expected = new IntervalByteMap();
    expected.put(new Interval(1, 2), (byte) 1);
    expected.put(new Interval(3, 5), (byte) 2);
    expected.put(new Interval(5, 6), (byte) 3);
    expected.put(new Interval(6, 7), (byte) 4);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Byte.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(byte.class, "[1, 2, 1]; [3, 5, 2]; [5, 6, '3']; [6, 7, \"4\"]"));
}