@Test
public void addExistingComponent() {
Component c = new Label("abc");
TabSheet tabSheet = new TabSheet();
tabSheet.addComponent(c);
tabSheet.addComponent(c);
Iterator<Component> iter = tabSheet.getComponentIterator();
assertEquals(c, iter.next());
assertEquals(false, iter.hasNext());