### Question:
TimeSelectorView implements TimeSelector.View { @Override public String getValue() { final String time = picker.getValue(); final String timeZoneValue; if (!Objects.isNull(getTimeZoneSelectedValue())) { timeZoneValue = NONE_VALUE.equals(getTimeZoneSelectedValue()) ? "" : getTimeZoneSelectedValue(); } else { timeZoneValue = ""; } return formatter.buildRawValue(time, timeZoneValue); } @Inject  TimeSelectorView(final HTMLInputElement timeInput,
                            final TimePicker picker,
                            final TimeZoneProvider timeZoneProvider,
                            final TimeValueFormatter formatter,
                            final @Named("i") HTMLElement toggleTimeZoneIcon,
                            final HTMLButtonElement toggleTimeZoneButton,
                            final ClientTranslationService translationService,
                            final HTMLSelectElement timeZoneSelector,
                            final HTMLOptionElement typeSelectOption); void onSelectChange(final JQuerySelectPickerEvent event); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void select(); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @EventHandler("time-input") void onTimeInputBlur(final BlurEvent blurEvent); @EventHandler("toggle-timezone-button") void onToggleTimeZoneButtonClick(final ClickEvent clickEvent); @Override boolean isChildOfView(final Object element); @Override void init(final TimeSelectorView presenter);  }### Answer:
@Test public void testGetValue() { final String time = "10:20:00"; final String selectedValue = "selected-value"; when(picker.getValue()).thenReturn(time); when(view.getTimeZoneSelectedValue()).thenReturn(selectedValue); when(formatter.buildRawValue(time, selectedValue)).thenReturn(""); view.getValue(); verify(formatter).buildRawValue(time, selectedValue); }