### Question:
IntIntervalList extends AbstractIntList implements Serializable { @Override public int size() { return endIndex - startIndex; } IntIntervalList(int size);   IntIntervalList(int start, int end); @Override int getInt(int index); @Override int size(); @Override IntListIterator listIterator(int idx);  }### Answer:
@Test public void testEmptyList() { IntList list = new IntIntervalList(0); assertTrue(list.isEmpty()); assertEquals(0, list.size()); assertFalse(list.iterator().hasNext()); }
@Test public void testEmptyRange() { IntList list = new IntIntervalList(5, 5); assertTrue(list.isEmpty()); assertEquals(0, list.size()); assertFalse(list.iterator().hasNext()); }