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