@Test
public void testToolBarFirePropertyChange() {

    JXRootPane rootPane = new JXRootPane();
    JToolBar toolBar = new JToolBar();
    rootPane.setToolBar(toolBar);
    assertTrue(SwingUtilities.isDescendingFrom(toolBar, rootPane));
    PropertyChangeReport report = new PropertyChangeReport();
    rootPane.addPropertyChangeListener(report);
    rootPane.setToolBar(new JToolBar());
    assertEquals(1, report.getEventCount());
    assertTrue(report.hasEvents("toolBar"));
}