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