### Question:
TimerSettingsFieldEditorPresenter extends FieldEditorPresenter<TimerSettingsValue> { public void onTimeDateTimePickerChange() { Date value = view.getTimeDateTimePickerValue(); view.setTimeDate(view.formatToISO(value)); onTimeDateChange(); } @Inject  TimerSettingsFieldEditorPresenter(final View view); @PostConstruct void init(); View getView(); void setValue(TimerSettingsValue value); @Override void setReadOnly(final boolean readOnly); void onShowTimeDateTimePicker(); void onTimeDateTimePickerChange(); void onTimeDateTimePickerHidden();  }### Answer:
@Test public void testOnTimeDateTimePickerChange() { Date value = new Date(); when(view.getTimeDateTimePickerValue()).thenReturn(value); when(view.formatToISO(value)).thenReturn(VALUE_1); editor.onTimeDateTimePickerChange(); verify(view, times(1)).formatToISO(value); verify(view, times(1)).setTimeDate(VALUE_1); }