### Question:
ImportsFieldEditorWidget extends Composite implements HasValue<ImportsValue> { protected void setImportsCount(ImportsValue importsValue) { int defaultImportsCount = 0; int wsdlImportsCount = 0; if (importsValue != null) { defaultImportsCount = importsValue.getDefaultImports().size(); wsdlImportsCount = importsValue.getWSDLImports().size(); } String importsString = buildImportsCountString(defaultImportsCount, wsdlImportsCount); importsTextBox.setText(importsString); } ImportsFieldEditorWidget();  ImportsFieldEditorWidget(final ImportsValue importsValue); @Override ImportsValue getValue(); @Override void setValue(final ImportsValue value); @Override void setValue(final ImportsValue value, final boolean fireEvents); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<ImportsValue> handler); @EventHandler("importsButton") void onClickImportsButton(final ClickEvent clickEvent); @EventHandler("importsTextBox") void onClickImportsTextBox(final ClickEvent clickEvent);  }### Answer:
@Test public void setImportsCount() { int defaultImportsQty = 5; int wsdlImportsQty = 4; ImportsValue importsValue = createImportsValue(defaultImportsQty, wsdlImportsQty); tested.setImportsCount(importsValue); verify(tested, times(1)).buildImportsCountString(defaultImportsQty, wsdlImportsQty); verify(tested.importsTextBox, times(1)).setText(anyString()); }