SelectOptionComponent { public void select() { this.callback.accept(selectOption); } @Inject  SelectOptionComponent(final View view); void initialize(SelectOption selectOption,
                           Consumer<SelectOption> callback); void select(); void activate(); void deactivate(); View getView();  }
@Test public void testSelectOption() { this.component.select(); verify(this.callback, times(1)).accept(eq(this.option)); }