### Question:
ScriptTypeFieldEditorPresenter extends FieldEditorPresenter<ScriptTypeValue> { @Override public void setReadOnly(boolean readOnly) { view.setReadOnly(readOnly); } @Inject  ScriptTypeFieldEditorPresenter(final MonacoEditorPresenter monacoEditor);   ScriptTypeFieldEditorPresenter(final View view); @PostConstruct void init(); IsElement getView(); @Override void setValue(ScriptTypeValue value); void setMode(ScriptTypeMode mode); @Override void setReadOnly(boolean readOnly);  }### 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); }