AbstractFormField implements FormField<T> { public boolean isReadOnly() { return this.readOnly; } AbstractFormField(final String id,
                           final String label,
                           final String helpText,
                           final boolean required,
                           @Nullable final String regexValidation,
                           @Nullable final T initialValue);  AbstractFormField(final String id,
                           final String label,
                           final String helpText,
                           final boolean required,
                           @Nullable final String regexValidation);  AbstractFormField(final String id,
                           final String label,
                           final String helpText,
                           final boolean required);  AbstractFormField(final String id); String getLabel(); String getHelpText(); String getId(); @Nullable String getRegexValidation(); boolean isRequired(); boolean isDisabled(); boolean isReadOnly(); @Nullable T getInitialValue(); void setHelpText(final String helpText); void setId(final String id); void setRegexValidation(@Nullable final String regex); void setRequired(final boolean required); void setDisabled(final boolean disabled); void setReadOnly(final boolean readOnly); void setLabel(final String label); void setInitialValue(@Nullable final T value); @Override Map<String, Object> getAttributes();  }
@Test public void when_CreatingNew_WithId_Expect_IsReadOnlyIsFalse() { assertFalse(formField.isReadOnly()); }