### Question:
MetaDataListItemWidgetViewImpl implements MetaDataListItemWidgetView { @EventHandler("deleteButton") public void handleDeleteButton(final ClickEvent e) { parentWidget.removeMetaData(getModel()); }  void setParentWidget(final MetaDataEditorWidgetView.Presenter parentWidget); @PostConstruct void init(); @Override MetaDataRow getModel(); @Override void setModel(final MetaDataRow model); @Override String getValue(); @Override void setValue(final String value); @Override void setReadOnly(final boolean readOnly); @EventHandler("deleteButton") void handleDeleteButton(final ClickEvent e); @Override void notifyModelChanged();  }### Answer:
@Test public void testHandleDeleteButton() { MetaDataRow model = mock(MetaDataRow.class); when(view.getModel()).thenReturn(model); view.setParentWidget(parent); view.handleDeleteButton(null); verify(parent).removeMetaData(model); }