assertEquals(2, tabSheet.getTabPosition(tabSheet.getTab(lbl4)));
// Replace component in tabsheet with another
// should swap places, tab association should stay the same but tabs
// should swap metadata
tabSheet.replaceComponent(lbl1, lbl2);
assertSame(tab1, tabSheet.getTab(lbl1));
assertSame(tab2, tabSheet.getTab(lbl2));
assertEquals(false, tab1.isClosable());
assertEquals(true, tab2.isClosable());
assertEquals(false, tab1.isEnabled());