### Question:
BindableTypeAhead implements IsWidget,
                                             HasValue<T> { @Override public void setValue(T value) { setValue(value, false); } @Inject  BindableTypeAhead(BindableTypeAheadView view); void init(String mask,
                     Dataset<T> dataset); @Override T getValue(); @Override void setValue(T value); @Override void setValue(T value,
                         boolean fireEvents); @Override HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> valueChangeHandler); void setReadOnly(boolean readOnly); @Override Widget asWidget(); @Override void fireEvent(GwtEvent<?> event);  }### Answer:
@Test public void testSetValueWithoutEvents() { typeAhead.setValue(guitar); verify(view).setValue(guitar); }
@Test public void testSetValueWithEvents() { typeAhead.setValue(guitar, true); verify(view).setValue(guitar); }