### Question:
YearsMonthsSelectorView implements YearsMonthsSelector.View { @Override public YearsMonthsValue getValue() { final YearsMonthsValue value = new YearsMonthsValue(); value.setMonths(monthInput.value); value.setYears(yearInput.value); return value; } @Inject  YearsMonthsSelectorView(final HTMLInputElement yearInput,
                                   final HTMLInputElement monthInput); @Override void init(final YearsMonthsSelectorView presenter); @Override YearsMonthsValue getValue(); @Override void setValue(final YearsMonthsValue value); @Override void setPlaceHolder(final String placeholder); @EventHandler("years-input") void onYearsInputBlur(final BlurEvent blurEvent); @EventHandler("months-input") void onMonthsInputBlur(final BlurEvent blurEvent); @Override void onValueChanged(final Consumer<Event> onValueChanged); @Override void onValueInputBlur(final Consumer<BlurEvent> blurEvent); @Override void select();  }### Answer:
@Test public void testGetValue() { final String inputYear = "inputYear"; final String inputMonth = "inputMonth"; yearInput.value = inputYear; monthInput.value = inputMonth; final YearsMonthsValue value = view.getValue(); assertEquals(inputYear, value.getYears()); assertEquals(inputMonth, value.getMonths()); }