@Test
public void testBorderOnLFChange() {

    JXTitledPanel titledPanel = new JXTitledPanel();
    assertTrue("sanity: titledPanels default border must be ui-installable " + titledPanel.getBorder(), 
            SwingXUtilities.isUIInstallable(titledPanel.getBorder()));
    LineBorder border = new LineBorder(titledPanel.getBackground());
    titledPanel.setBorder(border);
    assertEquals("sanity: border set", border, titledPanel.getBorder());
    titledPanel.updateUI();
    assertEquals("border untouched ", border, titledPanel.getBorder());
}