PropertyEditorFieldOptionUtils { public static void applyFieldOption(final PropertyEditorFieldOption option, final Widget fieldWidget) { if (PropertyEditorFieldOption.DISABLED.equals(option)) { disable(fieldWidget); } }  static void applyFieldOption(final PropertyEditorFieldOption option,
                                        final Widget fieldWidget); static void disable(final Widget fieldWidget);  }
@Test public void applyFieldOptionOnHasEnableWidgetTest() { final PropertyEditorTextBox widget = mock(PropertyEditorTextBox.class); PropertyEditorFieldOptionUtils.applyFieldOption(PropertyEditorFieldOption.DISABLED, widget); verify(widget).setEnabled(false); }