@Test
public void testSetSelectedItem() throws Exception {

  assertEquals( 1, list.getSelectedIndex() );
  XulListitem item = (XulListitem) doc.getElementById( "listItem2" );
  list.setSelectedItem( item );
  assertEquals( 2, list.getSelectedIndex() );
}