@Test
public void testStatusBarSet() {

    JXRootPane rootPane = new JXRootPane();
    JXStatusBar toolBar = new JXStatusBar();
    rootPane.setStatusBar(toolBar);
    assertTrue(SwingUtilities.isDescendingFrom(toolBar, rootPane));
    rootPane.setStatusBar(new JXStatusBar());
    assertFalse(SwingUtilities.isDescendingFrom(toolBar, rootPane));
}