c.addItemListener(this);
c.setSelectedIndex(1);
harness.check(c.getSelectedItem(), "B");
harness.check(events.size(), 2);
ItemEvent e1 = (ItemEvent) events.get(0);
harness.check(e1.getStateChange(), ItemEvent.DESELECTED);
harness.check(e1.getItem(), "A");
ItemEvent e2 = (ItemEvent) events.get(1);
harness.check(e2.getStateChange(), ItemEvent.SELECTED);
harness.check(e2.getItem(), "B");
events.clear();
c.setSelectedIndex(-1);
harness.check(events.size(), 1);
e1 = (ItemEvent) events.get(0);