public void testSuggestions()
{
UserPicker userPicker = new UserClassFieldEditPane(editor.addField("User").getName()).getUserPicker();
// The suggestions should be case-insensitive. Match the last name.
List<UserElement> suggestions = userPicker.sendKeys("mOr").waitForSuggestions().getSuggestions();
Assert.assertEquals(2, suggestions.size());
assertUserElement(suggestions.get(0), "Eduard Moraru", "Enygma2002");
assertUserElement(suggestions.get(1), "Thomas Mortagne");
// Match the first name.