@Test
public void testParseIntervalMapBoolean() {

    IntervalBooleanMap expected = new IntervalBooleanMap();
    expected.put(new Interval(1, 2), true);
    expected.put(new Interval(3, 5), false);
    expected.put(new Interval(5, 6), false);
    expected.put(new Interval(6, 7), true);
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(Boolean.class, "[1, 2, true]; [3, 5, false]; [5, 6, '0']; [6, 7, \"1\"]"));
    assertEqualIntervalMaps(expected, IntervalsParser.parseIntervalMap(boolean.class, "[1, 2, true]; [3, 5, false]; [5, 6, 0]; [6, 7, 1]"));
}