staticListField.getDisplayTypeSelect().selectByVisibleText("select");
staticListField.getMultipleSelectionCheckBox().click();
Assert.assertEquals("4", staticListField.getSizeInput().getAttribute("value"));
// Apply configuration changes and assert the result.
staticListField.closeConfigPanel();
// The initial second item was removed.
Assert.assertNull(staticListField.getItemByValue("value2"));
// We should have a new item with value "XWiki".
staticListField.getItemByValue("XWiki").click();
// Assert the order of the items.