@Test
public void testParseIntervalMapShort() {

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