// Change the label of the last added item.
itemsEditor.setLabel("XWiki", "XWiki Enterprise");
// Move the last item before the first.
itemsEditor.moveBefore("XWiki", "value1");
Assert.assertEquals(4, itemsEditor.size());
// Enable multiple selection and change display type to 'select' to check the value of the size property.
staticListField.getDisplayTypeSelect().selectByVisibleText("select");