### Question:
NameFieldRenderer extends FieldRenderer<NameFieldDefinition, DefaultFormGroup> implements RequiresValueConverter { @Override protected void setReadOnly(final boolean readOnly) { textBox.setEnabled(!readOnly); } @Inject  NameFieldRenderer(final TextBox textBox); @Override String getName(); @Override Converter getConverter();  }### Answer:
@Test public void testSetReadOnly() { renderer.setReadOnly(false); verify(textBox).setEnabled(true); renderer.setReadOnly(true); verify(textBox).setEnabled(false); }