assertEquals(new Dimension(50, 0), ui.getPreferredSize(null));
TableColumn column2 = new TableColumn();
column2.setMinWidth(10);
column2.setPreferredWidth(20);
column2.setMaxWidth(40);
table.addColumn(column2);
assertEquals(new Dimension(30, 0), ui.getMinimumSize(null));
assertEquals(new Dimension(140, 0), ui.getMaximumSize(null));
assertEquals(new Dimension(70, 0), ui.getPreferredSize(null));
table.setRowHeight(30);
((DefaultTableModel) table.getModel()).addRow(new Object[] { "1" });