/*
  * Class under test for void installDefaults()
  */
 public void testInstallDefaults() {
   pane.uninstallDefaults();
   pane.paletteTitleHeight = 0;
   pane.paletteCloseIcon = null;
   pane.installDefaults();
   assertTrue("paletteTitleHeight != 0", pane.paletteTitleHeight != 0);
   assertTrue("installed paletteCloseIcon", pane.paletteCloseIcon != null);
 }
 /*
  * Class under test for void addSubComponents()
  */
 public void testAddSubComponents() {
   frame = new JInternalFrame("", true, true, true, true);
   pane = new MetalInternalFrameTitlePane(frame);
   assertEquals(3, pane.getComponentCount());
   frame = new JInternalFrame("", true, true, true, false);
   pane = new MetalInternalFrameTitlePane(frame);
   if (isHarmony()) {
     assertEquals(2, pane.getComponentCount());
   }
 }
 /*
  * Class under test for LayoutManager createLayout()
  */
 public void testCreateLayout() {
   LayoutManager layout = pane.createLayout();
   assertTrue("!= null", layout != null);
   assertTrue(
       "instanceof TitlePaneLayout",
       layout instanceof BasicInternalFrameTitlePane.TitlePaneLayout);
 }
 /*
  * Class under test for PropertyChangeListener createPropertyChangeListener()
  */
 public void testCreatePropertyChangeListener() {
   PropertyChangeListener listener = pane.createPropertyChangeListener();
   assertTrue("!= null", listener != null);
   assertTrue(
       "instanceof TitlePaneLayout",
       listener instanceof BasicInternalFrameTitlePane.PropertyChangeHandler);
 }
 /*
  * Class under test for void addSystemMenuItems(JMenu)
  */
 public void testAddSystemMenuItems() {
   // the tested function does nothing
   JMenu menu = new JMenu();
   pane.addSystemMenuItems(menu);
   assertEquals(0, menu.getItemCount());
 }
 /*
  * Class under test for void uninstallDefaults()
  */
 public void testUninstallDefaults() {
   pane.uninstallDefaults();
   assertTrue("paletteTitleHeight != 0", pane.paletteTitleHeight != 0);
   assertTrue("didn't uninstall paletteCloseIcon", pane.paletteCloseIcon != null);
 }