AttributeDefinition implements Serializable { public List<Option> getOptions() { return Collections.unmodifiableList(options); }  String getId(); LocalizableString getName(); LocalizableString getDescription(); boolean hasDescription(); LocalizableString getDefaultValue(); boolean isRequired(); List<Option> getOptions(); boolean isBoolean(); boolean isPassword(); boolean isOAuth(); OAuthData getOAuthConfiguration(); FieldValidator getValidator(); static Builder builder(StringLocalizer strings); @Override String toString();  }
@Test public void testBuilderShouldLocalizeOptionLabel_shouldWork() throws Exception { builder.option("optionLabelKey", "value"); assertThat(builder.build().getOptions().get(0).getValue(), is("value")); assertThat(builder.build().getOptions().get(0).getLabel().getString(null), is("option")); }