### Question:
KieAssetsDropdownView implements KieAssetsDropdown.View { @Override public void clear() { removeChildren(nativeSelect); nativeSelect.appendChild(selectOption()); refreshSelectPicker(); } @Inject  KieAssetsDropdownView(final HTMLSelectElement nativeSelect,
                                 final HTMLOptionElement htmlOptionElement,
                                 final TranslationService translationService); @Override void init(final KieAssetsDropdown presenter); @PostConstruct void init(); @Override void addValue(final KieAssetsDropdownItem entry); @Override void clear(); @Override void initialize(); @Override void refreshSelectPicker(); @Override String getValue(); static final String HIDDEN_CSS_CLASS; static final String SELECT_PICKER_SUBTEXT_ATTRIBUTE; }### Answer:
@Test public void clear() { doReturn(selectOptionMock).when(kieAssetsDropdownView).selectOption(); kieAssetsDropdownView.clear(); verify(kieAssetsDropdownView, times(1)).removeChildren(eq(nativeSelectMock)); verify(kieAssetsDropdownView, times(1)).selectOption(); verify(nativeSelectMock, times(1)).appendChild(eq(selectOptionMock)); verify(kieAssetsDropdownView, times(1)).refreshSelectPicker(); }