### Question:
ScriptTypeListFieldRenderer extends FieldRenderer<ScriptTypeListFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setReadOnly(readOnly); } @Inject  ScriptTypeListFieldRenderer(final ScriptTypeListFieldEditorWidget widget); @Override String getName();  }### Answer:
@Test public void testSetReadonlyTrue() { renderer.setReadOnly(true); verify(widget, times(1)).setReadOnly(true); }
@Test public void testSetReadonlyFalse() { renderer.setReadOnly(false); verify(widget, times(1)).setReadOnly(false); }