FilterWidgetImpl extends Composite implements FilterWidget { @UiHandler({"filter"}) public void onValueChanged(@SuppressWarnings("UnusedParameters")ValueChangeEvent<Boolean> event) { delegate.onValueChanged(); } @Inject  FilterWidgetImpl(RunnerResources resources, RunnerLocalizationConstant locale); @Override boolean getMatchesProjectType(); @Override void setMatchesProjectType(boolean matches); @Override void setDelegate(@NotNull ActionDelegate delegate); @UiHandler({"filter"}) void onValueChanged(@SuppressWarnings("UnusedParameters")ValueChangeEvent<Boolean> event);  }
@Test public void valueShouldBeChanged() throws Exception { filter.onValueChanged(event); verify(delegate).onValueChanged(); }