ItemController l = new ItemController();
comboBox.addItemListener(l);
assertEquals(1, comboBox.getItemListeners().length);
comboBox.addItemListener(new ItemController());
assertEquals(2, comboBox.getItemListeners().length);
comboBox.fireItemStateChanged(new ItemEvent(comboBox, ItemEvent.ITEM_STATE_CHANGED,
"a", ItemEvent.SELECTED));
assertEquals(1, l.getEvents().size());
assertEquals(comboBox, l.getEvents().get(0).getSource());
comboBox.removeItemListener(l);
assertEquals(1, comboBox.getItemListeners().length);