### Question:
NotificationWidget implements IsWidget,
                                           NotificationWidgetView.Presenter { @Override public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  NotificationWidget(NotificationWidgetView view,
                              ClientTranslationService translationService); @Override Widget asWidget(); @Override String getNameHeader(); @Override String getToUsersLabel(); @Override String getToEmailsLabel(); @Override String getToGroupsLabel(); @Override String getExpiresAtLabel(); @Override String getTypeLabel(); @Override String getReplyToLabel(); @Override String getSubjectLabel(); @Override String getBodyLabel(); @Override String getFromLabel(); @Override String getDeleteLabel(); @Override void setReadOnly(boolean readOnly); @Override void show(); @Override void hide(); @Override void ok(); @Override List<NotificationRow> getValue(); @Override void setValue(List<NotificationRow> values); @Override void setValue(List<NotificationRow> newValues, boolean fireEvents); void setCallback(final NotificationsEditorWidget.GetNotificationsCallback callback); @Override HandlerRegistration addValueChangeHandler(ValueChangeHandler<List<NotificationRow>> handler); @Override void fireEvent(GwtEvent<?> event);  }### Answer:
@Test public void setReadOnlyTest() { notificationWidget.setReadOnly(false); boolean readOnly = getFieldValue(NotificationWidgetViewImpl.class, notificationWidgetView, "readOnly"); Assert.assertFalse(readOnly); notificationWidget.ok(); }