### Question:
KindPopoverImpl extends AbstractPopoverImpl<KindPopoverView, HasKindSelectControl> implements KindPopoverView.Presenter { @Override public void onFunctionKindSelected(final FunctionDefinition.Kind kind) { binding.ifPresent(b -> { b.setFunctionKind(kind); view.hide(); }); } KindPopoverImpl(); @Inject  KindPopoverImpl(final KindPopoverView view,
                           final TranslationService translationService); @Override String getPopoverTitle(); @Override void onFunctionKindSelected(final FunctionDefinition.Kind kind);  }### Answer:
@Test public void testOnFunctionKindSelectedWhenBound() { popover.bind(hasKindSelectorControl, 0, 0); popover.onFunctionKindSelected(kind); verify(hasKindSelectorControl).setFunctionKind(eq(FunctionDefinition.Kind.JAVA)); verify(view).hide(); }
@Test public void testOnExpressionEditorDefinitionSelectedWhenNotBound() { popover.onFunctionKindSelected(kind); verify(hasKindSelectorControl, never()).setFunctionKind(any(FunctionDefinition.Kind.class)); verify(view, never()).hide(); }