{
DefaultTableModel tm = new DefaultTableModel(new String[] {"AA", "BB",
"CC"}, 3);
JTable t = new JTable(tm);
JTableHeader th = t.getTableHeader();
AccessibleContext ac = th.getAccessibleContext();
Accessible ac0 = ac.getAccessibleChild(0);
harness.check(ac0.getClass().getName().endsWith("AccessibleJTableHeaderEntry"));
AccessibleContext ac0ac = ac0.getAccessibleContext();
harness.check(ac0ac.getAccessibleName(), "AA");
ac0ac.addPropertyChangeListener(this);
ac0ac.setAccessibleName("AAx");
harness.check(ac0ac.getAccessibleName(), "AAx");
harness.check(events.size(), 1);
PropertyChangeEvent pce = (PropertyChangeEvent) events.get(0);
harness.check(pce.getPropertyName(), AccessibleContext.ACCESSIBLE_NAME_PROPERTY);
harness.check(pce.getOldValue(), null);
harness.check(pce.getNewValue(), "AAx");