SingleLiveSearchSelectionHandler implements LiveSearchSelectionHandler<TYPE> { @Override public void clearSelection() { if(selectedItem != null) { selectedItem.reset(); selectedItem = null; if (onChangeNotification != null) { onChangeNotification.execute(); } } } SingleLiveSearchSelectionHandler(); @Override String getDropDownMenuHeader(); @Override void registerItem(final LiveSearchSelectorItem<TYPE> item); @Override void selectItem(LiveSearchSelectorItem<TYPE> item); @Override void selectKey(TYPE key); TYPE getSelectedKey(); String getSelectedValue(); @Override void setLiveSearchSelectionCallback(Command command); @Override void clearSelection(); @Override boolean isMultipleSelection();  }
@Test public void testClearSelection() { LiveSearchSelectorItem item = doTestSelectItem(); handler.clearSelection(); verify(item).reset(); checkHandlerSelectedValue(null); }