@Test
public void registerSuggestHandler() {

    AbstractFormItem<String> formItem = formItem(false);
    SuggestHandler suggestHandler = new SuggestHandler() {
        @Override
        public void setFormItem(FormItem formItem) {
        }
        @Override
        public void showAll() {
        }
        @Override
        public void close() {
        }
    };
    formItem.registerSuggestHandler(suggestHandler);
    verify(readOnlyAppearance).apply(SUGGESTIONS, suggestHandler);
    verify(editingAppearance).apply(SUGGESTIONS, suggestHandler);
}