### Question:
ConditionEditorFieldEditorRenderer extends FieldRenderer<ConditionEditorFieldDefinition, DefaultFormGroup> { @Override protected void setReadOnly(boolean readOnly) { widget.setReadOnly(readOnly); } @Inject  ConditionEditorFieldEditorRenderer(final ConditionEditorFieldEditorWidget widget,
                                              final SessionManager sessionManager); @Override String getName(); @Override void init(FormRenderingContext renderingContext,
                     ConditionEditorFieldDefinition field);  }### 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); }