### Question:
TimerSettingsFieldEditorPresenter extends FieldEditorPresenter<TimerSettingsValue> { @Override public void setReadOnly(final boolean readOnly) { view.setReadOnly(readOnly); } @Inject  TimerSettingsFieldEditorPresenter(final View view); @PostConstruct void init(); View getView(); void setValue(TimerSettingsValue value); @Override void setReadOnly(final boolean readOnly); void onShowTimeDateTimePicker(); void onTimeDateTimePickerChange(); void onTimeDateTimePickerHidden();  }### Answer:
@Test public void testSetReadonlyTrue() { editor.setReadOnly(true); verify(view, times(1)).setReadOnly(true); }
@Test public void testSetReadonlyFalse() { editor.setReadOnly(false); verify(view, times(1)).setReadOnly(false); }