### Question:
DocumentationLinksFieldRenderer extends FieldRenderer<DocumentationLinksFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(final boolean readOnly) { widget.setEnabled(!readOnly); } DocumentationLinksFieldRenderer(); @Inject  DocumentationLinksFieldRenderer(final DocumentationLinksWidget widget); @Override void init(final FormRenderingContext renderingContext,
                     final DocumentationLinksFieldDefinition field); @Override String getName();  }### Answer:
@Test public void testSetReadOnly() { renderer.setReadOnly(true); verify(widget).setEnabled(false); renderer.setReadOnly(false); verify(widget).setEnabled(true); }