### Question:
AbstractKieAssetsDropdown implements KieAssetsDropdown { @Override public Optional<KieAssetsDropdownItem> getValue() { String currentValue = view.getValue(); return kieAssets .stream() .filter(kieAsset -> Objects.equals(currentValue, kieAsset.getValue())) .findAny(); } AbstractKieAssetsDropdown(final View view,
                                     final KieAssetsDropdownItemsProvider dataProvider); @Override @PostConstruct void init(); @Override void registerOnChangeHandler(final Command onChangeHandler); @Override void loadAssets(); @Override void initialize(); @Override void clear(); @Override HTMLElement getElement(); @Override Optional<KieAssetsDropdownItem> getValue(); @Override void onValueChanged(); @Override void initializeDropdown(); @Override void addValue(final KieAssetsDropdownItem kieAsset);  }### Answer:
@Test public void getValue() { when(getViewMock().getValue()).thenReturn(DEFAULT_VALUE); Optional<KieAssetsDropdownItem> retrieved = getDropdown().getValue(); assertNotNull(retrieved); assertTrue(retrieved.isPresent()); verify(getViewMock(), times(1)).getValue(); reset(getViewMock()); when(getViewMock().getValue()).thenReturn("UNKNOWN"); retrieved = getDropdown().getValue(); assertNotNull(retrieved); assertFalse(retrieved.isPresent()); }