@Test
public void testPackHiddenColumn() {

    JXTable table = new JXTable(10, 4);
    TableColumnExt columnExt = table.getColumnExt(0);
    columnExt.setVisible(false);
    try {
        table.getColumnFactory().packColumn(table, columnExt, -1, -1);
        fail("packColumn is doc'ed to not handle hidden columns");
    } catch (IllegalStateException e) {
        // expected
    }        
}