@Test
    public void construction() {
        int size = 30;
        List<Calendar> dates = new ArrayList<>(30);

        for (int i = 0; i < size; i++) {
            dates.add(Calendar.getInstance());
        }

        IntervalList list = new IntervalList(dates);
        assertEquals(size / 2, list.size());
    }