### Question:
YearsMonthsSelectorView implements YearsMonthsSelector.View { @EventHandler("months-input") public void onMonthsInputBlur(final BlurEvent blurEvent) { handle(blurEvent); } @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 testOnMonthsInputBlur() { final BlurEvent blurEvent = mock(BlurEvent.class); final NativeEvent nativeEvent = mock(NativeEvent.class); final EventTarget eventTarget = mock(EventTarget.class); when(blurEvent.getNativeEvent()).thenReturn(nativeEvent); when(nativeEvent.getRelatedEventTarget()).thenReturn(eventTarget); view.onMonthsInputBlur(blurEvent); verify(view).handle(blurEvent); }