assertEquals(100, model.getTotalColumnWidth());
}
public void testGetSetSelectionModel() throws Exception {
assertTrue(model.getSelectionModel() instanceof DefaultListSelectionModel);
DefaultListSelectionModel oldModel = (DefaultListSelectionModel) model.selectionModel;
assertEquals(1, oldModel.getListSelectionListeners().length);
assertEquals(model, oldModel.getListSelectionListeners()[0]);
DefaultListSelectionModel newModel = new DefaultListSelectionModel();
model.setSelectionModel(newModel);
assertEquals(newModel, model.getSelectionModel());
assertEquals(1, newModel.getListSelectionListeners().length);
assertEquals(model, newModel.getListSelectionListeners()[0]);
assertEquals(0, oldModel.getListSelectionListeners().length);
}