*/
private void typeSomethingToInputCheckThePoppupPressEnterCheckTheInputValue(RichFacesAutocomplete autocomplete,
String whatTotype, String expectedValueInPopup, String expectedValueInInputAfterEnter) {
SelectOrConfirm suggestions = autocomplete.type(whatTotype);
String firstSuggestion = autocomplete.advanced().getSuggestionsElements().get(0).getText();
assertTrue("The first row of popup should suggest " + expectedValueInPopup + " " + "when " + whatTotype
+ " is typed in input", expectedValueInPopup.equals(firstSuggestion));
suggestions.select(ChoicePickerHelper.byVisibleText().contains(firstSuggestion));
String valueInInput = autocomplete.advanced().getInput().getStringValue();
assertEquals("The value in input should be different!", expectedValueInInputAfterEnter, valueInInput);
autocomplete.advanced().getInput().clear();