### Question:
MetaDataListItemWidgetViewImpl implements MetaDataListItemWidgetView { @Override public void setReadOnly(final boolean readOnly) { deleteButton.setEnabled(!readOnly); value.setReadOnly(readOnly); attribute.setEnabled(!readOnly); }  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 testSetReadOnlyTrue() { view.setReadOnly(true); verify(deleteButton, times(1)).setEnabled(false); verify(value, times(1)).setReadOnly(true); verify(name, times(1)).setEnabled(false); }
@Test public void testSetReadOnlyFalse() { view.setReadOnly(false); verify(deleteButton, times(1)).setEnabled(true); verify(value, times(1)).setReadOnly(false); verify(name, times(1)).setEnabled(true); }