@Test
public void testModelChanged() {

    int first = 3;
    int last = 5;
    ListDataEvent e = new ListDataEvent(new DefaultListModel(), ListDataEvent.CONTENTS_CHANGED, last, first);
    ModelChange change = new ModelChange(e);
    assertEquals(ListDataEvent.CONTENTS_CHANGED, change.type);
    assertFalse(change.allRowsChanged);
    assertEquals(last-first +1, change.length);
    assertEquals(first, change.startModelIndex);
    assertEquals(last, change.endModelIndex);
}