@Test
public void testLayoutOnLFChange() {

    JXTitledPanel titledPanel = new JXTitledPanel();
    assertNotNull(titledPanel.getContentContainer());
    titledPanel.getContentContainer().setLayout(new BorderLayout());
    String lf = UIManager.getLookAndFeel().getName();
    setSystemLF(!defaultToSystemLF);
    if (lf.equals(UIManager.getLookAndFeel().getName())) {
        LOG.info("cannot run layoutOnLFChange - equal LF" + lf);
        return;
    }
    SwingUtilities.updateComponentTreeUI(titledPanel);
    assertTrue(titledPanel.getContentContainer().getLayout() instanceof BorderLayout);
}