### Question:
AssigneeEditorWidget implements IsWidget,
                                             AssigneeEditorWidgetView.Presenter { public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  AssigneeEditorWidget(AssigneeEditorWidgetView view,
                                ManagedInstance<AssigneeListItem> listItems,
                                TranslationService translationService,
                                Event<NotificationEvent> notification); void init(AssigneeType type, int max); @Override String getValue(); @Override void setValue(String value); @Override void setValue(String newValue, boolean fireEvents); @Override Widget asWidget(); @Override void doSave(); void deserializeAssignees(String serializedValue); String serializeAssignees(List<Assignee> assigneeRows); @Override void addAssignee(); @Override boolean isDuplicateName(String name); void removeAssignee(AssigneeListItem listItem); @Override void fireEvent(GwtEvent<?> gwtEvent); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); @Override String getNameHeader(); @Override String getAddLabel(); @PreDestroy void destroy(); void setReadOnly(boolean readOnly);  }### Answer:
@Test public void setReadOnlyTrue() { widget.setReadOnly(true); verify(view, times(1)).setReadOnly(true); }
@Test public void setReadOnlyFalse() { widget.setReadOnly(false); verify(view, times(1)).setReadOnly(false); }