### Question:
YearsMonthsSelectorView implements YearsMonthsSelector.View { boolean isYearsOrMonthsInput(final Object object) { return yearInput == object || monthInput == object; } @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 testIsNotYearsOrMonthsInput() { final Object object = mock(Object.class); final boolean actual = view.isYearsOrMonthsInput(object); assertFalse(actual); }
@Test public void testIsYearsOrMonthsInput() { final boolean isMonthInput = view.isYearsOrMonthsInput(monthInput); assertTrue(isMonthInput); final boolean isYearInput = view.isYearsOrMonthsInput(yearInput); assertTrue(isYearInput); }