@Test
public void testEnabledSynched() {

    // test synch on propertyChange
    JXTable table = new JXTable();
    table.setEnabled(false);
    assertEquals(table.isEnabled(), table.getTableHeader().isEnabled());
    // test synch on setTable
    JXTableHeader header = new JXTableHeader();
    header.setTable(table);
    assertEquals(table.isEnabled(), header.isEnabled());
    // test true if table null
    header.setTable(null);
    assertEquals(true, header.isEnabled());
}