@Test
public void testSetSelectedItems() throws Exception {

  assertEquals( 1, list.getSelectedIndex() );
  list.setSeltype( "multiple" );
  XulListitem item2 = (XulListitem) doc.getElementById( "listItem2" );
  XulListitem item1 = (XulListitem) doc.getElementById( "listItem1" );
  Object[] items = new Object[] { item2, item1 };
  list.setSelectedItems( items );
  Object[] selected = list.getSelectedItems();
  assertEquals( item1, selected[0] );
  assertEquals( item2, selected[1] );
}