DataObjectFieldPicker implements DataObjectFieldPickerView.Presenter,
                                              IsWidget { public void destroy() { view.displayComparatorCheckbox(false); view.displayFieldPicker(false); view.clear(); for (DataObjectFieldPickerItem item : fieldPickerItemList) { fieldPickerItemProducer.destroy(item); } fieldPickerItemList.clear(); } @Inject  DataObjectFieldPicker(final DataObjectFieldPickerView view,
                                 final ManagedInstance<DataObjectFieldPickerItem> fieldPickerItemProducer); void init(DataModel dataModel,
                     DataObject rootDataObject,
                     List<ObjectPropertyPath> objectPropertyPaths,
                     PlannerDataObjectEditorView.Presenter presenter); void destroy(); @Override void onFieldPickerItemRemoved(DataObjectFieldPickerItem fieldPickerItem); @Override void onComparatorSpecified(boolean specified); @Override void onMoveFieldPickerItemUp(DataObjectFieldPickerItem fieldPickerItem); @Override void onMoveFieldPickerItemDown(DataObjectFieldPickerItem fieldPickerItem); @Override DataObjectFieldPickerItem addFieldPickerItem(); @Override Widget asWidget(); void objectPropertyPathChanged(boolean itemsRemoved); boolean isEmpty();  }
@Test public void destroy() { fieldPicker.destroy(); verify(view, times(1)).displayFieldPicker(false); verify(view, times(1)).displayComparatorCheckbox(false); verify(view, times(1)).clear(); }