@Test
public void testGetSelectedItems() throws Exception {

  list.setSelectedIndex( 2 );
  XulListitem item = (XulListitem) doc.getElementById( "listItem2" );
  Object[] selectedItems = list.getSelectedItems();
  assertEquals( 1, selectedItems.length );
  assertEquals( selectedItems[0], item );
}