@Test
public void testStatusBarFirePropertyChange() {

    JXRootPane rootPane = new JXRootPane();
    JXStatusBar toolBar = new JXStatusBar();
    rootPane.setStatusBar(toolBar);
    assertTrue(SwingUtilities.isDescendingFrom(toolBar, rootPane));
    PropertyChangeReport report = new PropertyChangeReport();
    rootPane.addPropertyChangeListener(report);
    rootPane.setStatusBar(new JXStatusBar());
    assertEquals("set statusBar must have fire exactly one property change", 1, report.getEventCount());
    assertTrue(report.hasEvents("statusBar"));
}