@Test
public void testNullVisibilityAction() {

    JXTable table = new JXTable();
    ColumnControlButton columnControl = new ColumnControlButton(table) {
                @Override
                protected ColumnVisibilityAction createColumnVisibilityAction(TableColumn column) {
                    if (column.getModelIndex() == 0) return null;
                    return super.createColumnVisibilityAction(column);
                }
        
        
    };
    table.setColumnControl(columnControl);
    table.setColumnControlVisible(true);
    table.setModel(sortableTableModel);
}